Adjusting the UIDefaults
is one way. Another is to design a pluggable look & feel.
How to change the default font size of Java swing components [duplicate]
Question
When doing Java JFrame design, I need to edit the font size and font type manually each time drag and drop from the Swing palette. The default font of Java Swing components is Tahoma 11 plain.
What I want is the font size and font type to be set to Tahoma 15 plain when I drag JTextfield
and then JLabel
. So I don’t need to change manually anymore.
Solution
OTHER TIPS
This is not a netbeans platform problem. Use the UIManager class to set the Font for the whole program. Hope these links will help you.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow