public void save() { messageTable.saveState(false); ddsTable.saveState(false); obsTable.saveState(false); prefs.putBeanObject("InfoWindowBounds", infoWindow.getBounds()); prefs.putBeanObject("InfoWindowBounds2", infoWindow2.getBounds()); prefs.putInt("splitPos", split.getDividerLocation()); prefs.putInt("splitPos2", split2.getDividerLocation()); if (fileChooser != null) fileChooser.save(); }
public void save() { dumpPane.save(); for (NestedTable nt : nestedTableList) { nt.saveState(); } prefs.putBeanObject("InfoWindowBounds", infoWindow.getBounds()); prefs.putBeanObject("DumpWindowBounds", dumpWindow.getBounds()); if (attWindow != null) prefs.putBeanObject("AttWindowBounds", attWindow.getBounds()); prefs.putInt("mainSplit", mainSplit.getDividerLocation()); }
void hide() { if (!isShowing) return; tablePanel.remove(currentComponent); if (split != null) { splitPos = split.getDividerLocation(); currentComponent = (JComponent) split.getLeftComponent(); tablePanel.add(currentComponent, BorderLayout.CENTER); } tablePanel.revalidate(); isShowing = false; }
void saveState() { table.saveState(false); if (split != null) myPrefs.putInt("splitPos" + level, split.getDividerLocation()); }