O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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(); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required