展开全部
自己可以查看JAVA API文档嘛
我把下面的贴出来已经觉得自己很白痴了
http://gceclub.sun.com.cn/Java_Docs/html/zh_CN/api/java/awt/Frame.html
-------------------
J2SE5.0 API,可以自e69da5e887aa62616964757a686964616f31333234323132己参看DOC
字段摘要
static int CROSSHAIR_CURSOR
已过时。 由 Cursor.CROSSHAIR_CURSOR 取代。
static int DEFAULT_CURSOR
已过时。 由 Cursor.DEFAULT_CURSOR 取代。
static int E_RESIZE_CURSOR
已过时。 由 Cursor.E_RESIZE_CURSOR 取代。
static int HAND_CURSOR
已过时。 由 Cursor.HAND_CURSOR 取代。
static int ICONIFIED
此状态位指示将 frame 图标化。
static int MAXIMIZED_BOTH
此状态位掩码指示将 frame 完全最大化(水平和垂直方向)。
static int MAXIMIZED_HORIZ
此状态位指示在水平方向将 frame 最大化。
static int MAXIMIZED_VERT
此状态位指示在垂直方向将 frame 最大化。
static int MOVE_CURSOR
已过时。 由 Cursor.MOVE_CURSOR 取代。
static int N_RESIZE_CURSOR
已过时。 由 Cursor.N_RESIZE_CURSOR 取代。
static int NE_RESIZE_CURSOR
已过时。 由 Cursor.NE_RESIZE_CURSOR 取代。
static int NORMAL
Frame 处于 "normal" 状态。
static int NW_RESIZE_CURSOR
已过时。 由 Cursor.NW_RESIZE_CURSOR 取代。
static int S_RESIZE_CURSOR
已过时。 由 Cursor.S_RESIZE_CURSOR 取代。
static int SE_RESIZE_CURSOR
已过时。 由 Cursor.SE_RESIZE_CURSOR 取代。
static int SW_RESIZE_CURSOR
已过时。 由 Cursor.SW_RESIZE_CURSOR 取代。
static int TEXT_CURSOR
已过时。 由 Cursor.TEXT_CURSOR 取代。
static int W_RESIZE_CURSOR
已过时。 由 Cursor.W_RESIZE_CURSOR 取代。
static int WAIT_CURSOR
已过时。 由 Cursor.WAIT_CURSOR 取代。
从类 java.awt.Component 继承的字段
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
从接口 java.awt.image.ImageObserver 继承的字段
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
构造方法摘要
Frame()
构造 Frame 的一个新实例(初始时不可见)。
Frame(GraphicsConfiguration gc)
使用屏幕设备的指定 GraphicsConfiguration 创建一个 Frame。
Frame(String title)
构造一个新的、初始不可见的、具有指定标题的 Frame 对象。
Frame(String title, GraphicsConfiguration gc)
构造一个新的、初始不可见的、具有指定标题和 GraphicsConfiguration 的 Frame 对象。
方法摘要
void addNotify()
通过将此 Frame 连接到本机屏幕资源,从而使其成为可显示的。
protected void finalize()
移除输入方法和上下文,并从 AppContext 中移除此 Frame。
AccessibleContext getAccessibleContext()
获取与此 Frame 有关的 AccessibleContext。
int getCursorType()
已过时。 从 JDK version 1.1 开始,由 Component.getCursor() 取代。
int getExtendedState()
获取此 frame 的状态。
static Frame[] getFrames()
返回一个数组,包含由应用程序创建的所有 Frame。
Image getIconImage()
获取此 frame 显示在最小化图标中的图像。
Rectangle getMaximizedBounds()
获取此 frame 的最大化边界。
MenuBar getMenuBar()
获取此 frame 的菜单栏。
int getState()
获取此 frame 的状态(已废弃)。
String getTitle()
获得 frame 的标题。
boolean isResizable()
指示此 frame 是否可由用户调整大小。
boolean isUndecorated()
指示此 frame 是否未装饰。
protected String paramString()
返回表示此 Frame 状态的字符串。
void remove(MenuComponent m)
从此 frame 移除指定的菜单栏。
void removeNotify()
通过移除与本机屏幕资源的连接,将此 Frame 设置为不可显示的。
void setCursor(int cursorType)
已过时。 从 JDK version 1.1 开始,由 Component.setCursor(Cursor) 取代。
void setExtendedState(int state)
设置此 frame 的状态。
void setIconImage(Image image)
设置此 frame 要显示在最小化图标中的图像。
void setMaximizedBounds(Rectangle bounds)
设置此 frame 的最大化边界。
void setMenuBar(MenuBar mb)
将此 frame 的菜单栏设置为指定的菜单栏。
void setResizable(boolean resizable)
设置此 frame 是否可由用户调整大小。
void setState(int state)
设置此 frame 的状态(已废弃)。
void setTitle(String title)
将此 frame 的标题设置为指定的字符串。
void setUndecorated(boolean undecorated)
禁用或启用此 frame 的装饰。
从类 java.awt.Window 继承的方法
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
从类 java.awt.Container 继承的方法
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
从类 java.awt.Component 继承的方法
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
从类 java.lang.Object 继承的方法
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口 java.awt.MenuContainer 继承的方法
getFont, postEvent
已赞过
已踩过<
你对这个回答的评价是?
评论
收起