diff options
author | Jiri Vanek <[email protected]> | 2014-01-20 15:13:36 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2014-01-20 15:13:36 +0100 |
commit | 00ead2135a876523108cbbe03224e94da67a7293 (patch) | |
tree | ab10bdc59f02c4e2b7e60074a31dcc59af09bf80 /tests/netx/unit/net/sourceforge | |
parent | c6f420acd38b2036d17685efde866debc627c26e (diff) |
Added Christmas splashscreen extension.
Diffstat (limited to 'tests/netx/unit/net/sourceforge')
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java | 1 | ||||
-rw-r--r-- | tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java | 14 |
2 files changed, 9 insertions, 6 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java index 7772237..29d7634 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/ErrorSplashScreenTest.java @@ -143,6 +143,7 @@ public class ErrorSplashScreenTest extends JDialog { public static void main(String args[]) { ErrorSplashScreenTest app = new ErrorSplashScreenTest(); + app.setSize(800, 600); app.setVisible(true); app.addWindowListener( new WindowAdapter() { diff --git a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java index 44b1271..bb513e5 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/splashscreen/SplashScreenTest.java @@ -57,6 +57,7 @@ public class SplashScreenTest extends JDialog { static int height = JNLPSplashScreen.DEF_HEIGHT; static SplashPanel panel; private static boolean swap = true; + private static InformationElement ie = new InformationElement(); public SplashScreenTest() { @@ -67,8 +68,7 @@ public class SplashScreenTest extends JDialog { //setLocation(x, y); setLocationRelativeTo(null); this.pack(); - panel = SplashUtils.getSplashScreen(width, height, SplashUtils.SplashReason.JAVAWS); - InformationElement ie = new InformationElement(); + panel = SplashUtils.getSplashScreen(width, height, SplashUtils.SplashReason.APPLET); ie.setHomepage("http://someones.org/amazing?page"); ie.setTitle("Testing information title"); ie.setvendor("IcedTea-Web team"); @@ -145,6 +145,7 @@ public class SplashScreenTest extends JDialog { public static void main(String args[]) { SplashScreenTest app = new SplashScreenTest(); + app.setSize(800, 600); app.setVisible(true); app.addWindowListener( @@ -165,7 +166,8 @@ public class SplashScreenTest extends JDialog { //not needed //panel.stopAnimation(); if (swap) { - SplashErrorPanel r = SplashUtils.getErrorSplashScreen(panel.getSplashWidth(), panel.getSplashHeight(), SplashUtils.SplashReason.JAVAWS, null); + SplashErrorPanel r = SplashUtils.getErrorSplashScreen(panel.getSplashWidth(), panel.getSplashHeight(), SplashUtils.SplashReason.APPLET, null); + r.setInformationElement(ie); app.remove(panel.getSplashComponent()); r.setPercentage(panel.getPercentage()); r.adjustForSize(); @@ -174,9 +176,9 @@ public class SplashScreenTest extends JDialog { panel.setVersion("1.2-re45fdg"); app.add(panel.getSplashComponent()); - app.validateTree(); - //app.pack(); - //app.setVisible(true); + app.validate(); + app.pack(); + app.setVisible(true); try { Thread.sleep(10000); } catch (Exception e) { |