Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change Default Font of JOptionPane?

843804Apr 13 2003 — edited Feb 20 2005
I can change default font of JButton using:
UIManager.put("Botton.font",myNewFont);

How can I change the font of JOptionPane?
I tried as below:
UIManager.put("OptionPane.font",myNewFont);
But this line of code does not work as what I expect.

Thank you in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 20 2005
Added on Apr 13 2003
5 comments
311 views