0

Hi everyone.

Ive finally figured out how to get my JOptionPane always on top no matter what but i cant figure out how to get the results
of what button the user has clicked? and how to disable the x on the top left corner?

This is what I have. Any insight would be appreciated.

  JOptionPane op = new JOptionPane("paused",JOptionPane.INFORMATION_MESSAGE,JOptionPane.OK_CANCEL_OPTION,null,new String[]{"Restart","Shutdown"},"default");
JDialog dialog = op.createDialog("Interferance Detected");
dialog.setAlwaysOnTop(true);
dialog.setModal(true);
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
dialog.setVisible(true);
3
Contributors
2
Replies
13
Views
2 Years
Discussion Span
Last Post by JamesCherrill
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.