Samuel Finzhry
Samuel Finzhry

Reputation: 35

showInputDialog Formatting

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?

Upvotes: 1

Views: 86

Answers (1)

Cris
Cris

Reputation: 5007

you should try this

dialog.getContentPane().setBackground( Color.blue );

Upvotes: 2

Related Questions