File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to display bold text in JOptionPane
 
Similar Threads
Format text in JTextArea
Enabling Font-urgent
Enabling font-urgent
jsp
formatting text using javascript