Java Code Examples for java.awt.peer.FramePeer#setMaximizedBounds()
The following examples show how to use
java.awt.peer.FramePeer#setMaximizedBounds() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Frame.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 2
Source File: Frame.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 3
Source File: Frame.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getComponentFactory().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 4
Source File: Frame.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 5
Source File: Frame.java From JDKSourceCode1.8 with MIT License | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 6
Source File: Frame.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 7
Source File: Frame.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 8
Source File: Frame.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 9
Source File: Frame.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
/** * Makes this Frame displayable by connecting it to * a native screen resource. Making a frame displayable will * cause any of its children to be made displayable. * This method is called internally by the toolkit and should * not be called directly by programs. * @see Component#isDisplayable * @see #removeNotify */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) { peer = getToolkit().createFrame(this); } FramePeer p = (FramePeer)peer; MenuBar menuBar = this.menuBar; if (menuBar != null) { mbManagement = true; menuBar.addNotify(); p.setMenuBar(menuBar); } p.setMaximizedBounds(maximizedBounds); super.addNotify(); } }
Example 10
Source File: Frame.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 11
Source File: Frame.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 12
Source File: Frame.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 13
Source File: Frame.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 14
Source File: Frame.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 15
Source File: Frame.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 16
Source File: Frame.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 17
Source File: Frame.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If {@code bounds} is {@code null}, accept bounds * supplied by the system. If non-{@code null} you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to {@code Integer.MAX_VALUE}. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 18
Source File: Frame.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If {@code bounds} is {@code null}, accept bounds * supplied by the system. If non-{@code null} you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to {@code Integer.MAX_VALUE}. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 19
Source File: Frame.java From Java8CN with Apache License 2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }
Example 20
Source File: Frame.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Sets the maximized bounds for this frame. * <p> * When a frame is in maximized state the system supplies some * defaults bounds. This method allows some or all of those * system supplied values to be overridden. * <p> * If <code>bounds</code> is <code>null</code>, accept bounds * supplied by the system. If non-<code>null</code> you can * override some of the system supplied values while accepting * others by setting those fields you want to accept from system * to <code>Integer.MAX_VALUE</code>. * <p> * Note, the given maximized bounds are used as a hint for the native * system, because the underlying platform may not support setting the * location and/or size of the maximized windows. If that is the case, the * provided values do not affect the appearance of the frame in the * maximized state. * * @param bounds bounds for the maximized state * @see #getMaximizedBounds() * @since 1.4 */ public void setMaximizedBounds(Rectangle bounds) { synchronized(getObjectLock()) { this.maximizedBounds = bounds; } FramePeer peer = (FramePeer)this.peer; if (peer != null) { peer.setMaximizedBounds(bounds); } }