0

I have a JOptionPane which displays a custom panel. I've read that the option pane cannot be made to remain opened after pressing the OK button for example. Is that really true and if not how could it be done.

EDIT

I found this link very useful link http://docs.oracle.com/javase/tutorial/uiswing/components/dialog.html#stayup

1 Answers1

0

Here is one example with image when JComboBox located on JOptionPane and it is staying after clicking in JComboBox: Force JOptionPane to Stay Open

 ...
    JComboBox optionControl = new JComboBox(options);
         optionControl.setSelectedIndex(3);
         JOptionPane.showMessageDialog(null, optionControl, "Option",
         JOptionPane.QUESTION_MESSAGE);
  ...
Community
  • 1
  • 1
Vasyl Lyashkevych
  • 1,920
  • 2
  • 23
  • 38