Path: blob/master/src/demo/share/jfc/SwingSet2/README.txt
41149 views
SwingSet2 demonstrates some of the abilities of the Swing User Interface1Toolkit by displaying many of the components in a single showcase application.2Use it to try out different components and features provided by Swing.345==================================6TO RUN SWINGSET2 AS AN APPLICATION7==================================89java -jar SwingSet2.jar101112=============================13TO RUN SWINGSET2 AS AN APPLET14=============================1516appletviewer SwingSet2.html1718=========================19TO MODIFY/BUILD SWINGSET220=========================2122The full source for the SwingSet2 demo can be found in the "src"23subdirectory. If you wish to play with the source code and try24out your changes, you can compile and run in this "src" directory:2526javac *.java2728java SwingSet22930You may notice a difference when running SwingSet from your compiled source31(versus running from the packaged JAR file), in that it won't show the32splash screen. This is expected, as the splash screen is shown using the33java.awt.SplashScreen support, which allows specifying a splash screen34image as an attribute in the JAR's manifest file. If you'd like to see the35splash screen with your own compiled version, you can package your classes36into a JAR and specify the splash screen (as outlined in the java.awt.SplashScreen37documentation) or you can specify the splash screen image on the command line:3839java -splash:resources/images/splash.png SwingSet2404142Note: These instructions assume that this installation's versions of the java,43appletviewer, and javac commands are in your path. If they aren't, then you should44either specify the complete path to the commands or update your PATH environment45variable as described in the installation instructions for the46Java(TM) SE Development Kit.474849