示例#1
0
 public void closeWindow() {
   final OptionPanelWindowConfigurationStorage storage =
       new OptionPanelWindowConfigurationStorage();
   storage.setPanel(selectedPanel);
   storage.storeDialogPositions(topDialog, OptionPanel.PREFERENCE_STORAGE_PROPERTY);
   topDialog.setVisible(false);
   topDialog.dispose();
 }
 public static OptionPanelWindowConfigurationStorage decorateDialog(
     final String marshalled, final JDialog dialog) {
   final OptionPanelWindowConfigurationStorage storage =
       new OptionPanelWindowConfigurationStorage();
   final XMLElement xml = storage.unmarschall(marshalled, dialog);
   if (xml != null) {
     storage.panel = xml.getAttribute("panel", null);
     return storage;
   }
   return null;
 }