コード例 #1
0
  @Override
  public void setVisible(boolean b) {
    if (b == isVisible()) return;

    super.setVisible(b);

    if (ClassicPrefs.getWindowMaximized("InstrumentsDbFrame")) {
      setExtendedState(getExtendedState() | MAXIMIZED_BOTH);
    }
  }
コード例 #2
0
  private void setSavedSize() {
    Rectangle r = StdUtils.getWindowBounds("InstrumentsDbFrame");
    if (r == null) {
      setDefaultSize();
      return;
    }

    setBounds(r);

    if (ClassicPrefs.getWindowMaximized("InstrumentsDbFrame"))
      setExtendedState(getExtendedState() | MAXIMIZED_BOTH);
  }