public class LookAndFeelDemo
1: // Fig. 22.18: LookAndFeelDemo.java
2: // Changing the look and feel.
3: import javax.swing.JFrame;
4:
5: public class LookAndFeelDemo
6: {
7: public static void main( String args[] )
8: {
9: LookAndFeelFrame lookAndFeelFrame = new LookAndFeelFrame();
10: lookAndFeelFrame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
11: lookAndFeelFrame.setSize( 300, 200 ); // set frame size
12: lookAndFeelFrame.setVisible( true ); // display frame
13: } // end main
14: } // end class LookAndFeelDemo
15:
16:
17:
18: /**************************************************************************
19: * (C) Copyright 1992-2005 by Deitel & Associates, Inc. and *
20: * Pearson Education, Inc. All Rights Reserved. *
21: * *
22: * DISCLAIMER: The authors and publisher of this book have used their *
23: * best efforts in preparing the book. These efforts include the *
24: * development, research, and testing of the theories and programs *
25: * to determine their effectiveness. The authors and publisher make *
26: * no warranty of any kind, expressed or implied, with regard to these *
27: * programs or to the documentation contained in these books. The authors *
28: * and publisher shall not be liable in any event for incidental or *
29: * consequential damages in connection with, or arising out of, the *
30: * furnishing, performance, or use of these programs. *
31: *************************************************************************/