ModelTrains
Programmer
How do I set the default font for the entire application?
I currently have this:
THE PROBLEM:
I cannot find a list of objects that need to have the font set. How do I set the font in a JComboBox? I found out, using trial-and-error, that you set a JLabel using "Label.font". I need a list of other components/objects.
Thank you in advance for the list! (or reference to one.)
I currently have this:
Code:
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
Font f = new Font("Arial", Font.PLAIN, 12);
UIManager.put("Menu.font", f);
UIManager.put("MenuBar.font", f);
UIManager.put("MenuItem.font", f);
UIManager.put("Label.font", f);
UIManager.put("Button.font", f);
THE PROBLEM:
I cannot find a list of objects that need to have the font set. How do I set the font in a JComboBox? I found out, using trial-and-error, that you set a JLabel using "Label.font". I need a list of other components/objects.
Thank you in advance for the list! (or reference to one.)