aspose file tools*
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
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: 24184
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two different font sizes for the text in titlebar