@Override public void setVisible(boolean b) { if (b == isVisible()) return; super.setVisible(b); if (ClassicPrefs.getWindowMaximized("InstrumentsDbFrame")) { setExtendedState(getExtendedState() | MAXIMIZED_BOTH); } }
private void setSavedSize() { Rectangle r = StdUtils.getWindowBounds("InstrumentsDbFrame"); if (r == null) { setDefaultSize(); return; } setBounds(r); if (ClassicPrefs.getWindowMaximized("InstrumentsDbFrame")) setExtendedState(getExtendedState() | MAXIMIZED_BOTH); }