General discussion

Locked

Changing the look and feel of java GUI

By mmmova ·
1)Can anyone tell me how i can change the look and feel of my java GUI?
2)How can i customise my own GUI components?
Thanx

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

PLAF

by Jay Eckles In reply to Changing the look and fee ...

Regarding question number 1, please see:
http://developer.java.sun.com/developer/onlineTraining/GUI/Swing2/shortcourse.html#JFCPluggable
Which is part of the Swing tutorial, Part II.

Basically you use some code that looks a little like this:
try {
UIManager.setLookAndFeel (
"javax.swing.plaf.metal.MetalLookAndFeel");
} catch (java.lang.ClassNotFoundException e) {
// Can't change look and feel
}

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums