jQuery in Action, 2nd edition
The moose likes Swing / AWT / SWT / JFace and the fly likes Skins for java application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Skins for java application" Watch "Skins for java application" New topic
Author

Skins for java application

syed fazal faheem
Greenhorn

Joined: Jul 13, 2001
Posts: 12
Hi,
As a quick intro, i am developing look and feel implementation for my swing application. I am having a set of internal frames in my application.
When i try to set the button border in UIDefaults, even the minimize, maximize and close buttons of internal frames are getting affected. Can any one help me out with this.
This is the code i used to set the UIDefaults in a class derived from javax.swing.plaf.basic.BasicLookAndFeel
protected void initComponentDefaults(UIDefaults table) {
super.initComponentDefaults(table);
Object[] defaults = {
"Button.font", new FontUIResource("Arial", Font.BOLD, 12 ),
"Button.border",new BorderUIResource(new OvalBorder()),
"Button.margin", new InsetsUIResource(8, 8, 8, 8)
};
table.putDefaults( defaults );
}
OvalBorder class implements javax.swing.border.Border interface

Waiting for a solution,
fazal.
 
 
subject: Skins for java application
 
Threads others viewed
Custom LookAndFeel and JTable problem
How to load custom UI using L&F?
Focusing in Frames
Custom Buttons
Custom LookAndFeel and JTextArea (functional keys doesn't work)
developer file tools