Package java.awt.peer Previous
Previous
Java API
Java API
Index
Index
Next
Next

Interface FramePeer

Methods

The frame peer interface specifies the methods that all implementations of Abstract Window Toolkit frames must define.

public  interface  java.awt.peer.FramePeer
    extends java.awt.peer.WindowPeer  
{
        // Methods
    public abstract void setCursor(int  cursorType);	
    public abstract void setIconImage(Image  im);	
    public abstract void setMenuBar(MenuBar  mb);	
    public abstract void setResizable(boolean  resizeable);	
    public abstract void setTitle(String  title);	
}


Methods


setCursor

public abstract void setCursor(int  cursorType) 

Sets the cursor image to be one of the predefined cursors.

ParameterDescription
cursorType one of the predefined cursor constants defined above.


setIconImage

public abstract void setIconImage(Image  im) 

Sets the image to display when this frame is iconized.

Note that not all platforms support the concept of iconizing a window.

ParameterDescription
image the icon image to be displayed


setMenuBar

public abstract void setMenuBar(MenuBar  mb) 

Sets the menubar of this frame to the specified menu bar.

ParameterDescription
mb the new menu bar


setResizable

public abstract void setResizable(boolean  resizeable) 

Determines whether this frame should be resizable.

ParameterDescription
resizable true if the frame should be resizable; false otherwise.


setTitle

public abstract void setTitle(String  title) 

Sets the title of this frame to the specified title.

ParameterDescription
title the new title of this frame, or null to delete the title.



Top© 1996 Sun Microsystems, Inc. All rights reserved.