Need help on Swing!!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manoj_Rajbhandary
Posted On:   Wednesday, April 4, 2001 12:19 PM

I've developed an applicatin using Swing.Is there a way that I could control globally the properties(like background color, font size etc)throughout the application without having to change in each componet(panel/dialog), like style sheet(.css) in HTML files ?? It would be better if you could provide me with some examples !! Thanks !!

Re: Need help on Swing!!

Posted By:   Sandip_Chitale  
Posted On:   Monday, April 9, 2001 01:04 PM

Scan the sourcecode for


javax.swing.plaf.basic.BasicLookAndFeel


Then set all the configurable resources using UIManager.put(id, value); e.g.


UIManager.put("InternalFrame.activeTitleBackground", Color.red);


You should do this before creating the UI.
About | Sitemap | Contact