• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two different font sizes for the text in titlebar

 
Riddhi Shah
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic