Disable « Dialog « Java Swing Q&A





1. How to disable X on dialog boxes?    stackoverflow.com

Is there a way to disable all X on dialog boxes? I can accomplish this on one by doing:

JOptionPane pane = new JOptionPane("Are you hungry?", JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_NO_OPTION);

JDialog dialog = pane.createDialog("Title"); 
dialog.addWindowListener(new ...

2. How to Disable Java Logo in Dialogs?    coderanch.com