void setResizable(boolean resizable)
设置此 frame 是否可由用户调整大小 。
void setState(int state)
设置此 frame 的状态(已废弃) 。
void setTitle(String title)
将此 frame 的标题设置为指定的字符串 。
void setUndecorated(boolean undecorated)
禁用或启用此 frame 的装饰 。
此外 , 由于Frame继承了java.awt.Window类,所以也具有该类的功能 , 如下:
void addNotify()
通过创建到其本机屏幕资源的连接,使此窗口变得可显示 。
void addPropertyChangeListener(PropertyChangeListener listener)
将 PropertyChangeListener 添加到侦听器列表 。
void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
将 PropertyChangeListener 添加到某个特定属性的侦听器列表 。
void addWindowFocusListener(WindowFocusListener l)
添加指定的窗口焦点侦听器,以从此窗口接收窗口事件 。
void addWindowListener(WindowListener l)
添加指定的窗口侦听器 , 以从此窗口接收窗口事件 。
void addWindowStateListener(WindowStateListener l)
添加指定的窗口状态侦听器,以从此窗口接收窗口事件 。
void applyResourceBundle(ResourceBundle rb)
已过时 。从 J2SE 1.4 开始 , 由 Component.applyComponentOrientation 取代 。
void applyResourceBundle(String rbName)
已过时 。从 J2SE 1.4 开始,由 Component.applyComponentOrientation 取代 。
void createBufferStrategy(int numBuffers)
为此组件上的多缓冲创建一个新策略 。
void createBufferStrategy(int numBuffers, BufferCapabilities caps)
根据所需缓冲功能为此组件上的多缓冲创建新策略 。
void dispose()
释放由此 Window、其子组件及其拥有的所有子组件所使用的所有本机屏幕资源 。
protectedvoid finalize()
释放输入方法和上下文,并从 GUI 层次结构中移除此 Window 。
AccessibleContext getAccessibleContext()
获取与此窗口关联的 AccessibleContext 。
BufferStrategy getBufferStrategy()
boolean getFocusableWindowState()
返回如果此窗口满足 isFocusableWindow 中列出的其他要求,其是否可以成为焦点窗口 。
Container getFocusCycleRootAncestor()
始终返回 null , 原因是窗口没有祖先;它们表示组件层次结构的顶层 。
Component getFocusOwner()
如果此窗口为焦点窗口,则返回其具有焦点窗口的子组件;否则返回 null 。
SetAWTKeyStroke getFocusTraversalKeys(int id)
获取此窗口的焦点遍历键 。
GraphicsConfiguration getGraphicsConfiguration()
此方法返回由此窗口使用的 GraphicsConfiguration 。
InputContext getInputContext()
获取此窗口的输入上下文 。
T extends EventListener
T[]
getListeners(ClassT listenerType)
返回当前在此 Window 上注册为 FooListener 的所有对象的数组 。
Locale getLocale()
如果设置了区域,则获取与此窗口关联的 Locale 对象 。
Component getMostRecentFocusOwner()
返回此窗口的子组件,该子组件在此窗口为焦点窗口时将接收焦点 。
Window[] getOwnedWindows()
返回包含此窗口当前拥有的所有窗口的数组 。
Window getOwner()
返回此窗口的所有者 。
Toolkit getToolkit()
返回此框架的工具包 。
String getWarningString()
获取此窗口中显示的警告字符串 。
WindowFocusListener[] getWindowFocusListeners()
返回在此窗口注册的所有窗口焦点侦听器的数组 。
WindowListener[] getWindowListeners()
返回在此窗口注册的所有窗口侦听器的数组 。
WindowStateListener[] getWindowStateListeners()
- 如何获取云服务器的源代码? 云服务器源代码怎么弄
- 如何设置云服务器的源代码? 云服务器源代码怎么设置
- java查询数组中是否包含某一个值 javamongodb数组查询
- 如何修改云服务器的源代码? 云服务器源码怎么修改
- 如何寻找云服务器的源代码? 云服务器源码怎么找
- 如何配置云服务器的源代码? 云服务器源码怎么设置
- redis实战电子书 redisjava书籍
- redis哨兵keepalive 代码redis哨兵
- javaredis集群 javaredis列队
- Redis队列排队 redis队列java
