Top Description Methods
java.awt.peer

public Interface FramePeer

extends WindowPeer
Known Direct Implementers
sun.awt.EmbeddedFrame.NullEmbeddedFramePeer, sun.awt.X11.XFramePeer
Imports
java.awt.*, sun.awt.EmbeddedFrame

The peer interface for Frame. This adds a couple of frame specific methods to the WindowPeer interface. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Method Summary

Modifier and TypeMethod and Description
public void
emulateActivation(boolean
activate or deactivate the window
activate
)

Requests the peer to emulate window activation.

public Rectangle

Returns:

the bounds of an embedded frame
getBoundsPrivate
()

Returns the size and location for embedded frames.

public int

Returns:

the current state of the frame
getState
()

Returns the current state of the frame.

public void
setBoundsPrivate(int
the X location
x
,
int
the Y location
y
,
int
the width of the frame
width
,
int
the height of the frame
height
)

Sets the size and location for embedded frames.

public void
setMaximizedBounds(Rectangle
the maximized bounds of the frame
bounds
)

Sets the bounds of the frame when it becomes maximized.

public void
setMenuBar(MenuBar
the menu bar to set
mb
)

Sets the menu bar for the frame.

public void
setResizable(boolean
true when the frame should be resizable, false if not
resizeable
)

Sets if the frame should be resizable or not.

public void
setState(int
the new state
state
)

Changes the state of the frame.

public void
setTitle(String
the title to set
title
)

Sets the title on the frame.

Inherited from java.awt.peer.WindowPeer:
getAppropriateGraphicsConfigurationrepositionSecurityWarningsetModalBlockedsetOpacitysetOpaquetoBacktoFrontupdateAlwaysOnTopStateupdateFocusableWindowStateupdateIconImagesupdateMinimumSizeupdateWindow

Method Detail

emulateActivationback to summary
public void emulateActivation(boolean activate)

Requests the peer to emulate window activation.

Parameters
activate:boolean

activate or deactivate the window

getBoundsPrivateback to summary
public Rectangle 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.

Returns:Rectangle

the bounds of an embedded frame

See Also
EmbeddedFrame#getBoundsPrivate()
getStateback to summary
public int getState()

Returns the current state of the frame.

Returns:int

the current state of the frame

See Also
Frame#getExtendedState()
setBoundsPrivateback to summary
public void setBoundsPrivate(int x, int y, int width, int height)

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

Parameters
x:int

the X location

y:int

the Y location

width:int

the width of the frame

height:int

the height of the frame

See Also
EmbeddedFrame#setBoundsPrivate(int, int, int, int)
setMaximizedBoundsback to summary
public void setMaximizedBounds(Rectangle bounds)

Sets the bounds of the frame when it becomes maximized.

Parameters
bounds:Rectangle

the maximized bounds of the frame

See Also
Frame#setMaximizedBounds(Rectangle)
setMenuBarback to summary
public void setMenuBar(MenuBar mb)

Sets the menu bar for the frame.

Parameters
mb:MenuBar

the menu bar to set

See Also
Frame#setMenuBar(MenuBar)
setResizableback to summary
public void setResizable(boolean resizeable)

Sets if the frame should be resizable or not.

Parameters
resizeable:boolean

true when the frame should be resizable, false if not

See Also
Frame#setResizable(boolean)
setStateback to summary
public void setState(int state)

Changes the state of the frame.

Parameters
state:int

the new state

See Also
Frame#setExtendedState(int)
setTitleback to summary
public void setTitle(String title)

Sets the title on the frame.

Parameters
title:String

the title to set

See Also
Frame#setTitle(String)