• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display bold text in JOptionPane

 
nagaraju Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i display part of text in bold format in JOptionPane.showConfirmDialog();
??
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The default JLabel font on my machine seems to be bold, so I set a different font.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic