APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.awt

public abstract Class EmbeddedFrame

extends Frame
implements KeyEventDispatcher, PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener, java.awt.KeyEventDispatcher
Known Direct Subclasses
sun.awt.X11.XEmbeddedFrame
Imports
java.awt.AWTKeyStroke, .Component, .Container, .Cursor, .Dialog, .Dimension, .Frame, .Image, .KeyEventDispatcher, .KeyboardFocusManager, .MenuBar, .MenuComponent, .Point, .Rectangle, java.awt.event.KeyEvent, java.awt.peer.ComponentPeer, .FramePeer, java.beans.PropertyChangeEvent, .PropertyChangeListener, java.io.Serial, java.util.Set

A generic container used for embedding Java components. An EmbeddedFrame has two related uses: . Within a Java-based application, an EmbeddedFrame serves as a sort of firewall, preventing the contained components from using getParent() to find parent components, such as menubars. . Within a C-based application, an EmbeddedFrame contains a window handle which was created by the application, which serves as the top-level Java window. EmbeddedFrames created for this purpose are passed-in a handle of an existing window created by the application. The window handle should be of the appropriate native type for a specific platform, as stored in the pData field of the ComponentPeer.
Author
Thomas Ball

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private KeyboardFocusManager
protected static final boolean
protected static final boolean
private boolean
private static final long
serialVersionUID

Hides java.awt.Frame.serialVersionUID.

Use serialVersionUID from JDK 1.1 for interoperability.
private boolean
Inherited from java.awt.Frame:
CROSSHAIR_CURSORDEFAULT_CURSORE_RESIZE_CURSORHAND_CURSORICONIFIEDMAXIMIZED_BOTHMAXIMIZED_HORIZMAXIMIZED_VERTMOVE_CURSORN_RESIZE_CURSORNE_RESIZE_CURSORNORMALNW_RESIZE_CURSORS_RESIZE_CURSORSE_RESIZE_CURSORSW_RESIZE_CURSORTEXT_CURSORW_RESIZE_CURSORWAIT_CURSOR

Constructor Summary

AccessConstructor and Description
protected
EmbeddedFrame(boolean supportsXEmbed)

protected
protected
EmbeddedFrame(int handle)
Deprecated This constructor will be removed in 1.5

protected
EmbeddedFrame(long handle)

protected
EmbeddedFrame(long handle, boolean supportsXEmbed)

Method Summary

Modifier and TypeMethod and Description
public void
addNotify()

Overrides java.awt.Frame.addNotify.

Makes this Frame displayable by connecting it to a native screen resource.

private void
addTraversingOutListeners(KeyboardFocusManager kfm)

Register us as KeyEventDispatcher and property "managingFocus" listeners.

public boolean
dispatchKeyEvent(KeyEvent e)

Implements java.awt.KeyEventDispatcher.dispatchKeyEvent.

Need this method to detect when the focus may have chance to leave the focus cycle root which is EmbeddedFrame.

protected Rectangle

Returns:

a rectangle indicating this embedded frame's bounds
getBoundsPrivate
()

Gets the bounds of this embedded frame as a rectangle specifying the width, height and location relative to the native parent component.

public Cursor
getCursor()

Overrides java.awt.Component.getCursor.

Gets the cursor set in the component.

protected Point

Returns:

a point indicating this embedded frame's top-left corner
getLocationPrivate
()

Gets the location of this embedded frame as a point specifying the top-left corner relative to parent component.

public Container
getParent()

Overrides java.awt.Component.getParent.

Block introspection of a parent window by this child.

public void
hide()

Overrides java.awt.Window.hide.

Needed to avoid memory leak: we register this EmbeddedFrame as a listener with the KeyboardFocusManager.

public boolean
public boolean
isResizable()

Overrides java.awt.Frame.isResizable.

Indicates whether this frame is resizable by the user.

public void
notifyModalBlocked(Dialog blocker, boolean blocked)

This method should be overridden in subclasses.

public void
propertyChange(PropertyChangeEvent evt)

Implements java.beans.PropertyChangeListener.propertyChange.

Needed to track which KeyboardFocusManager is current.

public abstract void
public void
registerListeners()

Those who want to use the functionality of traversing out of the EmbeddedFrame must call this method.

public void
remove(MenuComponent m)

Overrides java.awt.Frame.remove.

Implements java.awt.MenuContainer.remove.

Removes the specified menu bar from this frame.

private void
removeTraversingOutListeners(KeyboardFocusManager kfm)

Deregister us as KeyEventDispatcher and property "managingFocus" listeners.

protected void
setBoundsPrivate(int
the new x-coordinate relative to the parent component
x
,
int
the new y-coordinate relative to the parent component
y
,
int
the new width of this embedded frame
width
,
int
the new height of this embedded frame
height
)

Moves and resizes this embedded frame.

public void
setCursorAllowed(boolean isCursorAllowed)

public void
setIconImage(Image image)

Overrides java.awt.Frame.setIconImage.

Sets the image to be displayed as the icon for this window.

public void
setIconImages(List<? extends Image> icons)

Overrides java.awt.Window.setIconImages.

Sets the sequence of images to be displayed as the icon for this window.

protected void
setLocationPrivate(int
the new x-coordinate relative to the parent component
x
,
int
the new y-coordinate relative to the parent component
y
)

Moves this embedded frame to a new location.

public void
setMenuBar(MenuBar mb)

Overrides java.awt.Frame.setMenuBar.

Sets the menu bar for this frame to the specified menu bar.

protected void
public void
setResizable(boolean resizable)

Overrides java.awt.Frame.setResizable.

Sets whether this frame is resizable by the user.

public void
setTitle(String title)

Overrides java.awt.Frame.setTitle.

Block modifying any frame attributes, since they aren't applicable for EmbeddedFrames.

public void
show()

Overrides java.awt.Window.show.

Needed to avoid memory leak: we register this EmbeddedFrame as a listener with the KeyboardFocusManager.

public boolean
public void
synthesizeWindowActivation(boolean
if true, activates the window; otherwise, deactivates the window
doActivate
)

Synthesize native message to activate or deactivate EmbeddedFrame window depending on the value of parameter b.

public void
toBack()

Overrides java.awt.Window.toBack.

If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.

public void
toFront()

Overrides java.awt.Window.toFront.

If this Window is visible, brings this Window to the front and may make it the focused Window.

public boolean

Returns:

true, if the EmbeddedFrame wants to get focus, false otherwise.
traverseIn
(boolean
FORWARD or BACKWARD
direction
)

This method is called by the embedder when we should receive focus as element of the traversal chain.

protected boolean

Returns:

true, if EmbeddedFrame wants the focus to leave it, false otherwise.
traverseOut
(boolean
FORWARD or BACKWARD
direction
)

This method is called from dispatchKeyEvent in the following two cases: 1.

public abstract void
Inherited from java.awt.Frame:
getAccessibleContextgetCursorTypegetExtendedStategetFramesgetIconImagegetMaximizedBoundsgetMenuBargetStategetTitleisUndecoratedparamStringremoveNotifysetBackgroundsetCursorsetExtendedStatesetMaximizedBoundssetOpacitysetShapesetStatesetUndecorated

Field Detail

appKFMback to summary
private KeyboardFocusManager appKFM
Annotations
@SuppressWarnings:serial
BACKWARDback to summary
protected static final boolean BACKWARD
FORWARDback to summary
protected static final boolean FORWARD
isCursorAllowedback to summary
private boolean isCursorAllowed
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.awt.Frame.serialVersionUID.

Use serialVersionUID from JDK 1.1 for interoperability.

Annotations
@Serial
supportsXEmbedback to summary
private boolean supportsXEmbed

Constructor Detail

EmbeddedFrameback to summary
protected EmbeddedFrame(boolean supportsXEmbed)
EmbeddedFrameback to summary
protected EmbeddedFrame()
EmbeddedFrameback to summary
protected EmbeddedFrame(int handle)

Deprecated

This constructor will be removed in 1.5

Annotations
@Deprecated
EmbeddedFrameback to summary
protected EmbeddedFrame(long handle)
EmbeddedFrameback to summary
protected EmbeddedFrame(long handle, boolean supportsXEmbed)

Method Detail

addNotifyback to summary
public void addNotify()

Overrides java.awt.Frame.addNotify.

Doc from java.awt.Frame.addNotify.

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.

addTraversingOutListenersback to summary
private void addTraversingOutListeners(KeyboardFocusManager kfm)

Register us as KeyEventDispatcher and property "managingFocus" listeners.

dispatchKeyEventback to summary
public boolean dispatchKeyEvent(KeyEvent e)

Implements java.awt.KeyEventDispatcher.dispatchKeyEvent.

Need this method to detect when the focus may have chance to leave the focus cycle root which is EmbeddedFrame. Mostly, the code here is copied from DefaultKeyboardFocusManager.processKeyEvent with some minor modifications.

getBoundsPrivateback to summary
protected Rectangle getBoundsPrivate()

Gets the bounds of this embedded frame as a rectangle specifying the width, height and location relative to the native parent component.

setLocation() and setBounds() for EmbeddedFrame really don't move it within the native parent. These methods always put embedded frame to (0, 0) for backward compatibility. To allow getting location and size of embedded frames getLocationPrivate() and getBoundsPrivate() were introduced, and they work just the same way as getLocation() and getBounds() for usual, non-embedded components.

Using usual get/setLocation() and get/setBounds() together with new get/setLocationPrivate() and get/setBoundsPrivate() is not recommended. For example, calling getBoundsPrivate() after setLocation() works fine, but getBounds() after setBoundsPrivate() may return unpredictable value.

Returns:Rectangle

a rectangle indicating this embedded frame's bounds

Since
1.6
See Also
java.awt.Component#getBounds, setLocationPrivate, getLocationPrivate, setBoundsPrivate
getCursorback to summary
public Cursor getCursor()

Overrides java.awt.Component.getCursor.

Doc from java.awt.Component.getCursor.

Gets the cursor set in the component. If the component does not have a cursor set, the cursor of its parent is returned. If no cursor is set in the entire hierarchy, Cursor.DEFAULT_CURSOR is returned.

getLocationPrivateback to summary
protected Point getLocationPrivate()

Gets the location of this embedded frame as a point specifying the top-left corner relative to parent component.

setLocation() and setBounds() for EmbeddedFrame really don't move it within the native parent. These methods always put embedded frame to (0, 0) for backward compatibility. To allow getting location and size of embedded frame getLocationPrivate() and getBoundsPrivate() were introduced, and they work just the same way as getLocation() and getBounds() for usual, non-embedded components.

Using usual get/setLocation() and get/setBounds() together with new get/setLocationPrivate() and get/setBoundsPrivate() is not recommended. For example, calling getBoundsPrivate() after setLocation() works fine, but getBounds() after setBoundsPrivate() may return unpredictable value.

Returns:Point

a point indicating this embedded frame's top-left corner

Since
1.6
See Also
java.awt.Component#getLocation, setLocationPrivate, setBoundsPrivate, getBoundsPrivate
getParentback to summary
public Container getParent()

Overrides java.awt.Component.getParent.

Block introspection of a parent window by this child.

hideback to summary
public void hide()

Overrides java.awt.Window.hide.

Needed to avoid memory leak: we register this EmbeddedFrame as a listener with the KeyboardFocusManager. We don't want the KFM to keep reference to our EmbeddedFrame forever if the Frame is no longer in use, so we add listeners in show() and remove them in hide().

Annotations
@SuppressWarnings:deprecation
isCursorAllowedback to summary
public boolean isCursorAllowed()
isResizableback to summary
public boolean isResizable()

Overrides java.awt.Frame.isResizable.

Doc from java.awt.Frame.isResizable.

Indicates whether this frame is resizable by the user. By default, all frames are initially resizable.

notifyModalBlockedback to summary
public void notifyModalBlocked(Dialog blocker, boolean blocked)

This method should be overridden in subclasses. It is called when window this frame is within should be blocked by some modal dialog.

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent evt)

Implements java.beans.PropertyChangeListener.propertyChange.

Needed to track which KeyboardFocusManager is current. We want to avoid memory leaks, so when KFM stops being current, we remove ourselves as listeners.

registerAcceleratorback to summary
public abstract void registerAccelerator(AWTKeyStroke stroke)
registerListenersback to summary
public void registerListeners()

Those who want to use the functionality of traversing out of the EmbeddedFrame must call this method. After that, all the changes can be handled automatically, including possible replacement of KeyboardFocusManager.

removeback to summary
public void remove(MenuComponent m)

Overrides java.awt.Frame.remove.

Implements java.awt.MenuContainer.remove.

Doc from java.awt.Frame.remove.

Removes the specified menu bar from this frame.

removeTraversingOutListenersback to summary
private void removeTraversingOutListeners(KeyboardFocusManager kfm)

Deregister us as KeyEventDispatcher and property "managingFocus" listeners.

setBoundsPrivateback to summary
protected void setBoundsPrivate(int x, int y, int width, int height)

Moves and resizes this embedded frame. The new location of the top-left corner is specified by x and y parameters relative to the native parent component. The new size is specified by width and height.

setLocation() and setBounds() for EmbeddedFrame really don't move it within the native parent. These methods always put embedded frame to (0, 0) for backward compatibility. To allow moving embedded frames setLocationPrivate() and setBoundsPrivate() were introduced, and they work just the same way as setLocation() and setBounds() for usual, non-embedded components.

Using usual get/setLocation() and get/setBounds() together with new get/setLocationPrivate() and get/setBoundsPrivate() is not recommended. For example, calling getBoundsPrivate() after setLocation() works fine, but getBounds() after setBoundsPrivate() may return unpredictable value.

Parameters
x:int

the new x-coordinate relative to the parent component

y:int

the new y-coordinate relative to the parent component

width:int

the new width of this embedded frame

height:int

the new height of this embedded frame

Since
1.5
See Also
java.awt.Component#setBounds, setLocationPrivate, getLocationPrivate, getBoundsPrivate
setCursorAllowedback to summary
public void setCursorAllowed(boolean isCursorAllowed)
setIconImageback to summary
public void setIconImage(Image image)

Overrides java.awt.Frame.setIconImage.

Doc from java.awt.Frame.setIconImage.

Sets the image to be displayed as the icon for this window.

This method can be used instead of setIconImages() to specify a single image as a window's icon.

The following statement:

    setIconImage(image);
is equivalent to:
    ArrayList<Image> imageList = new ArrayList<Image>();
    imageList.add(image);
    setIconImages(imageList);

Note : Native windowing systems may use different images of differing dimensions to represent a window, depending on the context (e.g. window decoration, window list, taskbar, etc.). They could also use just a single image for all contexts or no image at all.

setIconImagesback to summary
public void setIconImages(List<? extends Image> icons)

Overrides java.awt.Window.setIconImages.

Doc from java.awt.Window.setIconImages.

Sets the sequence of images to be displayed as the icon for this window. Subsequent calls to getIconImages will always return a copy of the icons list.

Depending on the platform capabilities one or several images of different dimensions will be used as the window's icon.

The icons list can contain MultiResolutionImage images also. Suitable image depending on screen resolution is extracted from base MultiResolutionImage image and added to the icons list while base resolution image is removed from list. The icons list is scanned for the images of most appropriate dimensions from the beginning. If the list contains several images of the same size, the first will be used.

Ownerless windows with no icon specified use platform-default icon. The icon of an owned window may be inherited from the owner unless explicitly overridden. Setting the icon to null or empty list restores the default behavior.

Note : Native windowing systems may use different images of differing dimensions to represent a window, depending on the context (e.g. window decoration, window list, taskbar, etc.). They could also use just a single image for all contexts or no image at all.

setLocationPrivateback to summary
protected void setLocationPrivate(int x, int y)

Moves this embedded frame to a new location. The top-left corner of the new location is specified by the x and y parameters relative to the native parent component.

setLocation() and setBounds() for EmbeddedFrame really don't move it within the native parent. These methods always put embedded frame to (0, 0) for backward compatibility. To allow moving embedded frame setLocationPrivate() and setBoundsPrivate() were introduced, and they work just the same way as setLocation() and setBounds() for usual, non-embedded components.

Using usual get/setLocation() and get/setBounds() together with new get/setLocationPrivate() and get/setBoundsPrivate() is not recommended. For example, calling getBoundsPrivate() after setLocation() works fine, but getBounds() after setBoundsPrivate() may return unpredictable value.

Parameters
x:int

the new x-coordinate relative to the parent component

y:int

the new y-coordinate relative to the parent component

Since
1.5
See Also
java.awt.Component#setLocation, getLocationPrivate, setBoundsPrivate, getBoundsPrivate
setMenuBarback to summary
public void setMenuBar(MenuBar mb)

Overrides java.awt.Frame.setMenuBar.

Doc from java.awt.Frame.setMenuBar.

Sets the menu bar for this frame to the specified menu bar.

setPeerback to summary
protected void setPeer(final ComponentPeer p)
setResizableback to summary
public void setResizable(boolean resizable)

Overrides java.awt.Frame.setResizable.

Doc from java.awt.Frame.setResizable.

Sets whether this frame is resizable by the user.

setTitleback to summary
public void setTitle(String title)

Overrides java.awt.Frame.setTitle.

Block modifying any frame attributes, since they aren't applicable for EmbeddedFrames.

showback to summary
public void show()

Overrides java.awt.Window.show.

Needed to avoid memory leak: we register this EmbeddedFrame as a listener with the KeyboardFocusManager. We don't want the KFM to keep reference to our EmbeddedFrame forever if the Frame is no longer in use, so we add listeners in show() and remove them in hide().

Annotations
@SuppressWarnings:deprecation
supportsXEmbedback to summary
public boolean supportsXEmbed()
synthesizeWindowActivationback to summary
public void synthesizeWindowActivation(boolean doActivate)

Synthesize native message to activate or deactivate EmbeddedFrame window depending on the value of parameter b. Peers should override this method if they are to implement this functionality.

Parameters
doActivate:boolean

if true, activates the window; otherwise, deactivates the window

toBackback to summary
public void toBack()

Overrides java.awt.Window.toBack.

Doc from java.awt.Window.toBack.

If this Window is visible, sends this Window to the back and may cause it to lose focus or activation if it is the focused or active Window.

Places this Window at the bottom of the stacking order and shows it behind any other Windows in this VM. No action will take place is this Window is not visible. Some platforms do not allow Windows which are owned by other Windows to appear below their owners. Every attempt will be made to move this Window as low as possible in the stacking order; however, developers should not assume that this method will move this Window below all other windows in every situation.

Because of variations in native windowing systems, no guarantees about changes to the focused and active Windows can be made. Developers must never assume that this Window is no longer the focused or active Window until this Window receives a WINDOW_LOST_FOCUS or WINDOW_DEACTIVATED event. On platforms where the top-most window is the focused window, this method will probably cause this Window to lose focus. In that case, the next highest, focusable Window in this VM will receive focus. On platforms where the stacking order does not typically affect the focused window, this method will probably leave the focused and active Windows unchanged.

toFrontback to summary
public void toFront()

Overrides java.awt.Window.toFront.

Doc from java.awt.Window.toFront.

If this Window is visible, brings this Window to the front and may make it the focused Window.

Places this Window at the top of the stacking order and shows it in front of any other Windows in this VM. No action will take place if this Window is not visible. Some platforms do not allow Windows which own other Windows to appear on top of those owned Windows. Some platforms may not permit this VM to place its Windows above windows of native applications, or Windows of other VMs. This permission may depend on whether a Window in this VM is already focused. Every attempt will be made to move this Window as high as possible in the stacking order; however, developers should not assume that this method will move this Window above all other windows in every situation.

Developers must never assume that this Window is the focused or active Window until this Window receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event. On platforms where the top-most window is the focused window, this method will probably focus this Window (if it is not already focused) under the following conditions:

  • The window meets the requirements outlined in the isFocusableWindow method.
  • The window's property autoRequestFocus is of the true value.
  • Native windowing system allows the window to get focused.
On platforms where the stacking order does not typically affect the focused window, this method will probably leave the focused and active Windows unchanged.

If this method causes this Window to be focused, and this Window is a Frame or a Dialog, it will also become activated. If this Window is focused, but it is not a Frame or a Dialog, then the first Frame or Dialog that is an owner of this Window will be activated.

If this window is blocked by modal dialog, then the blocking dialog is brought to the front and remains above the blocked window.

traverseInback to summary
public boolean traverseIn(boolean direction)

This method is called by the embedder when we should receive focus as element of the traversal chain. The method requests focus on: 1. the first Component of this EmbeddedFrame if user moves focus forward in the focus traversal cycle. 2. the last Component of this EmbeddedFrame if user moves focus backward in the focus traversal cycle. The direction parameter specifies which of the two mentioned cases is happening. Use FORWARD and BACKWARD constants defined in the EmbeddedFrame class to avoid confusing boolean values. A concrete implementation of this method is defined in the platform-dependent subclasses.

Parameters
direction:boolean

FORWARD or BACKWARD

Returns:boolean

true, if the EmbeddedFrame wants to get focus, false otherwise.

traverseOutback to summary
protected boolean traverseOut(boolean direction)

This method is called from dispatchKeyEvent in the following two cases: 1. The focus is on the first Component of this EmbeddedFrame and we are about to transfer the focus backward. 2. The focus in on the last Component of this EmbeddedFrame and we are about to transfer the focus forward. This is needed to give the opportunity for keyboard focus to leave the EmbeddedFrame. Override this method, initiate focus transfer in it and return true if you want the focus to leave EmbeddedFrame's cycle. The direction parameter specifies which of the two mentioned cases is happening. Use FORWARD and BACKWARD constants defined in EmbeddedFrame to avoid confusing boolean values.

Parameters
direction:boolean

FORWARD or BACKWARD

Returns:boolean

true, if EmbeddedFrame wants the focus to leave it, false otherwise.

unregisterAcceleratorback to summary
public abstract void unregisterAccelerator(AWTKeyStroke stroke)
sun.awt back to summary

private Class EmbeddedFrame.NullEmbeddedFramePeer

extends NullComponentPeer
implements FramePeer
Class Inheritance
All Implemented Interfaces
java.awt.peer.FramePeer, java.awt.peer.WindowPeer, java.awt.peer.ContainerPeer, java.awt.peer.ComponentPeer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
emulateActivation(boolean activate)

Implements java.awt.peer.FramePeer.emulateActivation.

Requests the peer to emulate window activation.

public Rectangle
getBoundsPrivate()

Implements java.awt.peer.FramePeer.getBoundsPrivate.

Returns the size and location for embedded frames.

public Component
public int
getState()

Implements java.awt.peer.FramePeer.getState.

Returns the current state of the frame.

public boolean
public boolean
public void
public void
setBoundsPrivate(int x, int y, int width, int height)

Implements java.awt.peer.FramePeer.setBoundsPrivate.

Sets the size and location for embedded frames.

public void
public void
setMaximizedBounds(Rectangle b)

Implements java.awt.peer.FramePeer.setMaximizedBounds.

Sets the bounds of the frame when it becomes maximized.

public void
setMenuBar(MenuBar mb)

Implements java.awt.peer.FramePeer.setMenuBar.

Sets the menu bar for the frame.

public void
setModalBlocked(Dialog blocker, boolean blocked)

Implements java.awt.peer.WindowPeer.setModalBlocked.

Sets if this window is blocked by a modal dialog or not.

public void
setOpacity(float opacity)

Implements java.awt.peer.WindowPeer.setOpacity.

Sets the level of opacity for the window.

public void
setOpaque(boolean isOpaque)

Implements java.awt.peer.WindowPeer.setOpaque.

Enables the per-pixel alpha support for the window.

public void
setResizable(boolean resizeable)

Implements java.awt.peer.FramePeer.setResizable.

Sets if the frame should be resizable or not.

public void
setState(int state)

Implements java.awt.peer.FramePeer.setState.

Changes the state of the frame.

public void
setTitle(String title)

Implements java.awt.peer.FramePeer.setTitle.

Sets the title on the frame.

public void
toBack()

Implements java.awt.peer.WindowPeer.toBack.

Makes this window the bottommost window on the desktop.

public void
toFront()

Implements java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

public void
public void
updateAlwaysOnTopState()

Implements java.awt.peer.WindowPeer.updateAlwaysOnTopState.

Updates the window's always-on-top state.

public void
updateFocusableWindowState()

Implements java.awt.peer.WindowPeer.updateFocusableWindowState.

Updates the window's focusable state.

public void
updateIconImages()

Implements java.awt.peer.WindowPeer.updateIconImages.

Updates the icons for the window.

public void
updateMinimumSize()

Implements java.awt.peer.WindowPeer.updateMinimumSize.

Updates the minimum size on the peer.

public void
updateWindow()

Implements java.awt.peer.WindowPeer.updateWindow.

Updates the native part of non-opaque window.

Inherited from sun.awt.NullComponentPeer:
applyShapebeginLayoutbeginValidatecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdisabledisposeenableendLayoutendValidateflipgetAppropriateGraphicsConfigurationgetBackBuffergetBoundsgetColorModelgetFontMetricsgetGraphicsgetGraphicsConfigurationgetInsetsgetLocationOnScreengetMinimumSizegetPreferredSizehandleEventhandleEventhandlesWheelScrollinghideinsetsisFocusableisObscuredisPaintPendingisReparentSupportedlayoutminimumSizepaintpreferredSizeprintrepaintreparentrequestFocusreshapesetBackgroundsetBoundssetCursorsetEnabledsetFontsetForegroundsetVisiblesetZOrdershowupdateCursorImmediatelyupdateGraphicsData

Constructor Detail

NullEmbeddedFramePeerback to summary
private NullEmbeddedFramePeer()

Method Detail

emulateActivationback to summary
public void emulateActivation(boolean activate)

Implements java.awt.peer.FramePeer.emulateActivation.

Doc from java.awt.peer.FramePeer.emulateActivation.

Requests the peer to emulate window activation.

getBoundsPrivateback to summary
public Rectangle getBoundsPrivate()

Implements java.awt.peer.FramePeer.getBoundsPrivate.

Doc from java.awt.peer.FramePeer.getBoundsPrivate.

Returns the size and location for embedded frames. (On embedded frames, setLocation() and setBounds() always set the frame to (0,0) for backwards compatibility.

getGlobalHeavyweightFocusOwnerback to summary
public Component getGlobalHeavyweightFocusOwner()
getStateback to summary
public int getState()

Implements java.awt.peer.FramePeer.getState.

Doc from java.awt.peer.FramePeer.getState.

Returns the current state of the frame.

isRestackSupportedback to summary
public boolean isRestackSupported()
requestWindowFocusback to summary
public boolean requestWindowFocus()
restackback to summary
public void restack()
setBoundsPrivateback to summary
public void setBoundsPrivate(int x, int y, int width, int height)

Implements java.awt.peer.FramePeer.setBoundsPrivate.

Doc from java.awt.peer.FramePeer.setBoundsPrivate.

Sets the size and location for embedded frames. (On embedded frames, setLocation() and setBounds() always set the frame to (0,0) for backwards compatibility.

setIconImageback to summary
public void setIconImage(Image im)
setMaximizedBoundsback to summary
public void setMaximizedBounds(Rectangle b)

Implements java.awt.peer.FramePeer.setMaximizedBounds.

Doc from java.awt.peer.FramePeer.setMaximizedBounds.

Sets the bounds of the frame when it becomes maximized.

setMenuBarback to summary
public void setMenuBar(MenuBar mb)

Implements java.awt.peer.FramePeer.setMenuBar.

Doc from java.awt.peer.FramePeer.setMenuBar.

Sets the menu bar for the frame.

setModalBlockedback to summary
public void setModalBlocked(Dialog blocker, boolean blocked)

Implements java.awt.peer.WindowPeer.setModalBlocked.

Doc from java.awt.peer.WindowPeer.setModalBlocked.

Sets if this window is blocked by a modal dialog or not.

setOpacityback to summary
public void setOpacity(float opacity)

Implements java.awt.peer.WindowPeer.setOpacity.

Doc from java.awt.peer.WindowPeer.setOpacity.

Sets the level of opacity for the window.

setOpaqueback to summary
public void setOpaque(boolean isOpaque)

Implements java.awt.peer.WindowPeer.setOpaque.

Doc from java.awt.peer.WindowPeer.setOpaque.

Enables the per-pixel alpha support for the window.

setResizableback to summary
public void setResizable(boolean resizeable)

Implements java.awt.peer.FramePeer.setResizable.

Doc from java.awt.peer.FramePeer.setResizable.

Sets if the frame should be resizable or not.

setStateback to summary
public void setState(int state)

Implements java.awt.peer.FramePeer.setState.

Doc from java.awt.peer.FramePeer.setState.

Changes the state of the frame.

setTitleback to summary
public void setTitle(String title)

Implements java.awt.peer.FramePeer.setTitle.

Doc from java.awt.peer.FramePeer.setTitle.

Sets the title on the frame.

toBackback to summary
public void toBack()

Implements java.awt.peer.WindowPeer.toBack.

Doc from java.awt.peer.WindowPeer.toBack.

Makes this window the bottommost window on the desktop.

toFrontback to summary
public void toFront()

Implements java.awt.peer.WindowPeer.toFront.

Doc from java.awt.peer.WindowPeer.toFront.

Makes this window the topmost window on the desktop.

updateAlwaysOnTopback to summary
public void updateAlwaysOnTop()
updateAlwaysOnTopStateback to summary
public void updateAlwaysOnTopState()

Implements java.awt.peer.WindowPeer.updateAlwaysOnTopState.

Doc from java.awt.peer.WindowPeer.updateAlwaysOnTopState.

Updates the window's always-on-top state. Sets if the window should always stay on top of all other windows or not.

updateFocusableWindowStateback to summary
public void updateFocusableWindowState()

Implements java.awt.peer.WindowPeer.updateFocusableWindowState.

Doc from java.awt.peer.WindowPeer.updateFocusableWindowState.

Updates the window's focusable state.

updateIconImagesback to summary
public void updateIconImages()

Implements java.awt.peer.WindowPeer.updateIconImages.

Doc from java.awt.peer.WindowPeer.updateIconImages.

Updates the icons for the window.

updateMinimumSizeback to summary
public void updateMinimumSize()

Implements java.awt.peer.WindowPeer.updateMinimumSize.

Doc from java.awt.peer.WindowPeer.updateMinimumSize.

Updates the minimum size on the peer.

updateWindowback to summary
public void updateWindow()

Implements java.awt.peer.WindowPeer.updateWindow.

Doc from java.awt.peer.WindowPeer.updateWindow.

Updates the native part of non-opaque window.