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!

How to set JFrame's title font

jduprezDec 15 2010 — edited Dec 15 2010
Hello,

I want to control the font (specifically, the size) used to render the title of an application JFrame windows.

I'm relatively confident that this has been answered elsewhere already, but I can't seem to find it (Google sends back some links to Sun forums, which I don't manage to find migrated here).
I found a few web pages mentioning that this is rendered by the native OS as is the case for AWT Frame, but I don't think it's correct for JFrame - especially, since changing Swing's LAF obviously changes the appearance of titlebars. I suspect some combination of "SomeClass.setxxxUndecorated(true)" and "IDontKnowWhat" would enable to control the titlebar font.

Still, I didn't find any "Frame.title.font" property as listed by Rob's now famous [url http://tips4java.wordpress.com/2008/10/09/uimanager-defaults/]UIManagerDefaults.

Thanks in advance.

J.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 12 2011
Added on Dec 15 2010
9 comments
9,720 views