Save This Page
Home » openjdk-7 » java » awt » peer » [javadoc | source]
java.awt.peer
public interface: FramePeer [javadoc | source]

All Implemented Interfaces:
    WindowPeer

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 from java.awt.peer.FramePeer Summary:
getBoundsPrivate,   getState,   setBoundsPrivate,   setMaximizedBounds,   setMenuBar,   setResizable,   setState,   setTitle
Method from java.awt.peer.FramePeer Detail:
 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.
 public int getState()
    Returns the current state of the frame.
 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.
 public  void setMaximizedBounds(Rectangle bounds)
    Sets the bounds of the frame when it becomes maximized.
 public  void setMenuBar(MenuBar mb)
    Sets the menu bar for the frame.
 public  void setResizable(boolean resizeable)
    Sets if the frame should be resizable or not.
 public  void setState(int state)
    Changes the state of the frame.
 public  void setTitle(String title)
    Sets the title on the frame.