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