@Override public void windowClosing(WindowEvent e) { PropertyEditor pe = ((PropertyDialog)e.getSource()).getEditor(); Object c = pe.getValue(); String options = ""; if (c instanceof OptionHandler) options = Utils.joinOptions(((OptionHandler)c).getOptions()); System.out.println(c.getClass().getName() + " " + options); System.exit(0); } });
@Override public void windowClosing(WindowEvent e) { PropertyEditor pe = ((PropertyDialog) e.getSource()).getEditor(); Object c = pe.getValue(); String options = ""; if (c instanceof OptionHandler) { options = Utils.joinOptions(((OptionHandler) c).getOptions()); } System.out.println(c.getClass().getName() + " " + options); System.exit(0); } });
@Override public void windowClosing(WindowEvent e) { PropertyEditor pe = ((PropertyDialog)e.getSource()).getEditor(); Object c = pe.getValue(); String options = ""; if (c instanceof OptionHandler) options = Utils.joinOptions(((OptionHandler)c).getOptions()); System.out.println(c.getClass().getName() + " " + options); System.exit(0); } });
@Override public void windowClosing(WindowEvent e) { PropertyEditor pe = ((PropertyDialog) e.getSource()).getEditor(); Object c = pe.getValue(); String options = ""; if (c instanceof OptionHandler) { options = Utils.joinOptions(((OptionHandler) c).getOptions()); } System.out.println(c.getClass().getName() + " " + options); System.exit(0); } });
@Override public void windowClosing(WindowEvent e) { PropertyEditor pe = ((PropertyDialog)e.getSource()).getEditor(); Object c = pe.getValue(); String options = ""; if (c instanceof OptionHandler) options = Utils.joinOptions(((OptionHandler)c).getOptions()); System.out.println(c.getClass().getName() + " " + options); System.exit(0); } });