• Post Reply Bookmark Topic Watch Topic
  • New Topic

Deferent Font

 
Veri Strora
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!
I have to build a GUI with more Windows calling one-other, and I have the necessity to set the Font for all components (JLabel, JButton etc.) of a specific window (JFrame), deferent from the default Font.
Inside that window there are more components an I don't wont to use "setFont" for each one. What is the more recommended way to do this from the Container Frame of the interested components? Can I do this not using UIManager? (To use UIManager We need to individuate the right key name of the property.)
Thank's in advance.
 
Brian Pipa
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be able to do it with one call to UIManager. I don't remember off the top of my head which property to set htough. You'll have ot enumerate them and figure it out.
brian
 
Tony Fabeets
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where you build your gui

I'd just pop this in its own class, incase you want to extend your theme later.

probably forgot something, but that's pretty much it
[ January 12, 2004: Message edited by: Tony Fabeets ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!