The SwingGUIDemo Class
package examples.clientserver; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.*; public class SwingGUIDemo extends JFrame implements ActionListener { private JTextField jt1; private JTextField jt2; private JButton jb1; private JButton jb2; private JButton jb3; private JList jl1; private JScrollPane js1; private JList jl2; private JScrollPane js2; private JPanel jp1; private JPanel jp2; private JPanel jp3; private JPanel jp4; // // list of installed LookAndFeels // private UIManager.LookAndFeelInfo[] uiList = UIManager.getInstalledLookAndFeels(); private int lfIdx; boolean jtToggle; public static void main( String[] args) { SwingGUIDemo g = new SwingGUIDemo("Test Java Swing"); g.go(); ...
Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.