Esempio n. 1
0
 @Override
 public boolean updateGraphicsData(GraphicsConfiguration gc) {
   boolean result = super.updateGraphicsData(gc);
   Rectangle bounds = AWTAccessor.getFrameAccessor().getMaximizedBounds((Frame) target);
   if (bounds != null) {
     setMaximizedBounds(bounds);
   }
   return result;
 }
Esempio n. 2
0
  private void postWindowStateChangedEvent(int newWindowState) {
    if (getTarget() instanceof Frame) {
      AWTAccessor.getFrameAccessor().setExtendedState((Frame) getTarget(), newWindowState);
    }
    WindowEvent stateChangedEvent =
        new WindowEvent(getTarget(), WindowEvent.WINDOW_STATE_CHANGED, windowState, newWindowState);
    postEvent(stateChangedEvent);
    windowState = newWindowState;

    updateSecurityWarningVisibility();
  }
Esempio n. 3
0
 public int getExtendedState() {
   return AWTAccessor.getFrameAccessor().getExtendedState((Frame) target);
 }
Esempio n. 4
0
 // sync target and peer
 public void setExtendedState(int state) {
   AWTAccessor.getFrameAccessor().setExtendedState((Frame) target, state);
 }