Exemple #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;
 }
  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();
  }
Exemple #3
0
 public int getExtendedState() {
   return AWTAccessor.getFrameAccessor().getExtendedState((Frame) target);
 }
Exemple #4
0
 // sync target and peer
 public void setExtendedState(int state) {
   AWTAccessor.getFrameAccessor().setExtendedState((Frame) target, state);
 }