This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Two different font sizes for the text in titlebar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Two different font sizes for the text in titlebar" Watch "Two different font sizes for the text in titlebar" New topic
Author

Two different font sizes for the text in titlebar

Riddhi Shah
Greenhorn

Joined: Jun 25, 2003
Posts: 19
Hi,
I have a JDialog with a customized look and feel. I have set the title of the titlebar using:
dialog.setTitle("My Dialog");
I want to set the font size of "My" as 10 and font size of "Dialog" as 8. How can I achieve this? Is this do-able or I am thinking crazy.
I tried using UIManager.put method. But it sets the font size globally.
Please help.
Riddhi.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Title bars and their look and feels are under the control of the underlying windowing system, not of Java. Because I'm not aware that Windows, X/Windows, or Max OS X supports this, it's not surprising that there's no Java API for it either.


[Jess in Action][AskingGoodQuestions]
 
Consider Paul's rocket mass heater.
 
subject: Two different font sizes for the text in titlebar
 
Similar Threads
file read/write
Adjust font size according to resolution change (or different screen size)
JQuery Dialog Box Positioning and Replacing X with Close
Getting Jdialog reference from AppletContext
font in chinese operating system