Packages This Package Prev Next Index
public class java.awt.Frame extends java.awt.Window (II-§1.42) implements java.awt.MenuContainer (II-§1.44) { // possible cursor types for the setCursor method public final static int CROSSHAIR_CURSOR; §1.19.1 public final static int DEFAULT_CURSOR; §1.19.2 public final static int E_RESIZE_CURSOR; §1.19.3 public final static int HAND_CURSOR; §1.19.4 public final static int MOVE_CURSOR; §1.19.5 public final static int N_RESIZE_CURSOR; §1.19.6 public final static int NE_RESIZE_CURSOR; §1.19.7 public final static int NW_RESIZE_CURSOR; §1.19.8 public final static int S_RESIZE_CURSOR; §1.19.9 public final static int SE_RESIZE_CURSOR; §1.19.10 public final static int SW_RESIZE_CURSOR; §1.19.11 public final static int TEXT_CURSOR; §1.19.12 public final static int W_RESIZE_CURSOR; §1.19.13 public final static int WAIT_CURSOR; §1.19.14 // Constructors public Frame(); §1.19.15 public Frame(String title); §1.19.16 // Methods public void addNotify(); §1.19.17 public void dispose(); §1.19.18 public int getCursorType(); §1.19.19 public Image getIconImage(); §1.19.20 public MenuBar getMenuBar(); §1.19.21 public String getTitle(); §1.19.22 public boolean isResizable(); §1.19.23 protected String paramString(); §1.19.24 public void remove(MenuComponent m); §1.19.25 public void setCursor(int cursorType); §1.19.26 public void setIconImage(Image image); §1.19.27 public void setMenuBar(MenuBar mb); §1.19.28 public void setResizable(boolean resizable); §1.19.29 public void setTitle(String title); §1.19.30 }A frame is a top-level window with a title and a border. A frame can also have a menu bar. The AWT sends the frame all mouse, keyboard, and focus events that occur over it.
public final static int CROSSHAIR_CURSOR = 1
public final static int DEFAULT_CURSOR = 0
public final static int E_RESIZE_CURSOR = 11
public final static int HAND_CURSOR = 12
public final static int MOVE_CURSOR = 13
public final static int N_RESIZE_CURSOR = 8
public final static int NE_RESIZE_CURSOR = 7
public final static int NW_RESIZE_CURSOR = 6
public final static int S_RESIZE_CURSOR = 9
public final static int SE_RESIZE_CURSOR = 5
public final static int SW_RESIZE_CURSOR = 4
public final static int TEXT_CURSOR = 2
public final static int W_RESIZE_CURSOR = 10
public final static int WAIT_CURSOR = 3
public Frame()
public Frame(String title)
title
-
the title
public void addNotify()
public void dispose()
public int getCursorType()
public Image getIconImage()
public MenuBar getMenuBar()
public String getTitle()
public boolean isResizable()
protected String paramString()
public void remove(MenuComponent m)
m
-
the menu component to remove.
public void setCursor(int cursorType)
cursorType
-
one of the predefined cursor constants defined above
(II-§1.19.1-§1.19.14).
public void setIconImage(Image image)
image
-
the icon image to be displayed
public void setMenuBar(MenuBar mb)
mb
-
the new menubar
public void setResizable(boolean resizable)
resizable
-
true if this frame should be resizable; false otherwise
public void setTitle(String title)
title
-
the new title of this frame, or null to remove the title
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)