Skip to Main Content
Java
book

Java

by Michael Sikora
January 2003
Beginner to intermediate content levelBeginner to intermediate
150 pages
7h 28m
English
Morgan Kaufmann
Content preview from Java
! 24
Chapter 8: Developing GUIs []
not part of the Java language itself, but rather classes within a package (com. sun. java. swing)
supplied by the Java Software Development Kit (SDK). The classes are as follows:
9 com. sun. java. swing, plaf. windows. WindowsLookAndFeel for Windows (32 bit only) operat-
ing systems
9
com.sun.java.swing.plaf.motif.MotifLookAndFeel for CDE/Motif look and feel on Sun
platforms
The setLookAndFeel method must be invoked within a try catch block. For example, the
following code fragment will create a Windows look and feel:
try {
UIManager. setLookAndFeel (
"com. sun. java. swing, plaf. windows. WindowsLookAndFeel") ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Programming

Java Programming

Hari Mohan Pandey
Java Programming

Java Programming

Poornachandra Sarang
JAVA Programming

JAVA Programming

K. Rajkumar
Java 9 for Programmers

Java 9 for Programmers

Paul J. Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781558609099