• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Font  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JFrame full of components. At the top I have a JComboBox with a list of available fonts.
When I choose a font, I want to update every component in my JFrame to use that font.
Can somone tell me to do this. Or do I just have to repaint every individual component when a new font is selected.
Thanks

------------------
Happy Coding,
Gregg Bolinger
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured out that I can just repaint the JFrame.

------------------
Happy Coding,
Gregg Bolinger
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!