Results 1 to 3 of 3
- 08-05-2009, 09:29 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 99
- Rep Power
- 0
- 08-06-2009, 02:23 AM #2
Senior Member
- Join Date
- Jul 2009
- Posts
- 1,158
- Rep Power
- 5
Check out the UIManager. It defines properties of each component, including the font. So iterate through all the values. Find a property that ends in "font" and then you can update the property to use your desired font.
- 08-07-2009, 04:59 AM #3
If you set all the font attributes of the components to null, then they will all inherit the font from the base container. So, just set the font of the container. I believe the default is to inherit.
Size and things like bold, italic, are inherit attributes of the font, so everything will have exactly the same font. Of course, that may not be a problem.
Similar Threads
-
JFrame 's components size and location problem
By petrosgraf in forum Threads and SynchronizationReplies: 5Last Post: 04-18-2009, 02:24 AM -
what is that method to change the size of a font in an applet?
By javanoobita in forum New To JavaReplies: 4Last Post: 02-22-2009, 06:31 AM -
How to resize the components with the change in the size of the window?
By shaunak kiwalkar in forum SWT / JFaceReplies: 1Last Post: 06-06-2008, 07:55 AM -
Listener for JFrame size change
By Thez in forum AWT / SwingReplies: 10Last Post: 02-14-2008, 03:10 PM -
gridbaglayout: increase/decrease size of components.
By newtojava7 in forum New To JavaReplies: 2Last Post: 01-28-2008, 07:22 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks