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