if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false); } pane.dialog.setVisible(false);
if (pane.dialog.isModal()) { System.out.println("modal dialog !!"); pane.dialog.setModal(false);
	public void installUI(JComponent c) {		super.installUI(c);		pane = (JOptionPane) c;		System.out.println("     -------------: " + pane);		JLabel message = pane.msg != null ? new JLabel((String) pane.msg) : null;		JButton ok_button = new JButton("Ok");		ok_button.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent a) {				System.out.println("ACTION ---> " + a);				//		    pane.dialog.dispose();				if (pane.dialog.isModal()) {					System.out.println("modal dialog !!");					pane.dialog.setModal(false);				}				pane.dialog.setVisible(false);			}		});		if (pane.args != null) {			for (int i = 0; i < pane.args.length; i++) {				Object o = pane.args[i];				if (o != null) {					if (o instanceof String) {						String s = (String) o;						JLabel m = new JLabel(s);						pane.add(m);					} else if (o instanceof Component) {						Component com = (Component) o;						pane.add(com);					} else {						System.out.println("UNRECOGNIZED ARG: " + o);					}				}			}		}		pane.add(message);		pane.add(ok_button);	}