Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Styling in Swing  RSS feed

 
Moni Mandal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do you apply styles across swing application. As in i want a common file (java/xml/properties) storing all styles for a button (font, border,color etc), and use a single line of code in swing to apply to a button in differrent GUIs
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UIManager?
 
Moni Mandal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we have multiple UIManager. Suppose there are 2 buttons in an interface and i want to give differrent styles to both, is there a better way to do rather than explicitly defining and setting properties for one of them and use UIManager for the other
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!