Packages  This Package  Prev  Next  Index  

§3.10 Interface FramePeer

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  (II-§3.22)
{
        // Methods
    public abstract void setCursor(int  cursorType);	§3.10.1
    public abstract void setIconImage(Image  im);	§3.10.2
    public abstract void setMenuBar(MenuBar  mb);	§3.10.3
    public abstract void setResizable(boolean  resizeable);	§3.10.4
    public abstract void setTitle(String  title);	§3.10.5
}

Methods

setCursor

public abstract void setCursor(int cursorType)
Sets the cursor image to be one of the predefined cursors.
Parameters:
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.
Parameters:
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.
Parameters:
mb - the new menu bar

setResizable

public abstract void setResizable(boolean resizeable)
Determines whether this frame should be resizable.
Parameters:
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.
Parameters:
title - the new title of this frame, or null to delete the title.

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com