1

I'm trying to figure out Java's JOptionPane.showInputDialog look and feel, more specifically, the commented line below:

final JDialog dialog = new JDialog();
    dialog.setAlwaysOnTop(true);  
 // OptionPane.background("blue");
    JOptionPane.showInputDialog(dialog, "Dialog");

How do I correctly use that line?

Samuel Finzhry
  • 35
  • 1
  • 10

1 Answers1

2

you should try this

dialog.getContentPane().setBackground( Color.blue );
Cris
  • 4,947
  • 6
  • 44
  • 73