Hi
I want to change the font size in all the gui component - from the jLabels to the jTable .
I don't want to change each gui component - but change the default in te begining of the program - is there someting like that ?
Printable View
Hi
I want to change the font size in all the gui component - from the jLabels to the jTable .
I don't want to change each gui component - but change the default in te begining of the program - is there someting like that ?
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.
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.