aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to display  bold text  in JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to display  bold text  in JOptionPane" Watch "How to display  bold text  in JOptionPane" New topic
Author

How to display bold text in JOptionPane

nagaraju Reddy
Greenhorn

Joined: Jul 05, 2005
Posts: 4
How can i display part of text in bold format in JOptionPane.showConfirmDialog();
??
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780

The default JLabel font on my machine seems to be bold, so I set a different font.


There is no emoticon for what I am feeling!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to display bold text in JOptionPane