• Post Reply Bookmark Topic Watch Topic
  • New Topic

JOptionPane  RSS feed

 
Anubhuti Bhargava
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unbale to set any background color to
JOptionPane.showConfirmDialog(arguments);
it would be of great help if anyone can figure this out.
thanks and regards
anubhuti
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the JOptionPane dialogs use the colors given by the lookAndFeel and its theme. you can implement your own theme or use the ones that are provided free in the net.
otherwise you have to use JDialog directly and build up your own dialogs.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"anubha" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!