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