From 0fe719f17d81f95491b939f23b5d5c3111f7c427 Mon Sep 17 00:00:00 2001 From: Jiri Vanek Date: Wed, 17 Jul 2013 18:59:39 +0200 Subject: About dialogue made accessible from plugin --- .../unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/netx/unit/net/sourceforge') diff --git a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java index 138ce58..44b1271 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java @@ -74,8 +74,8 @@ public class SplashScreenTest extends JDialog { ie.setvendor("IcedTea-Web team"); ie.addDescription("Testing null description"); ie.addDescription("tsting twoline des ...break\ncription of kind short", InfoItem.descriptionKindShort); - //panel.setInformationElement(ie); - //panel.setVersion("1.2-re45fdg"); + panel.setInformationElement(ie); + panel.setVersion("1.2-re45fdg"); setLayout(new BorderLayout()); getContentPane().add(panel.getSplashComponent(), BorderLayout.CENTER); @@ -159,7 +159,7 @@ public class SplashScreenTest extends JDialog { panel.startAnimation(); try { - Thread.sleep(5000); + Thread.sleep(10000); } catch (Exception e) { } //not needed @@ -169,7 +169,10 @@ public class SplashScreenTest extends JDialog { app.remove(panel.getSplashComponent()); r.setPercentage(panel.getPercentage()); r.adjustForSize(); + r.setLoadingException(new RuntimeException(":)")); panel = r; + panel.setVersion("1.2-re45fdg"); + app.add(panel.getSplashComponent()); app.validateTree(); //app.pack(); -- cgit v1.2.3