public interface WindowStateListener extends EventListener
班级,在处理窗口状态的事件感兴趣,要么实现这个接口(和所有的方法,它包含)或扩展摘要WindowAdapter
类(只覆盖方法的兴趣)。
从这个类进行了注册一个窗口使用Window
的addWindowStateListener
方法创建监听对象。当窗口的状态变化是图标化、最大化等优点,在windowStateChanged
监听对象的方法被调用时,与WindowEvent
传递给它。
WindowAdapter
,
WindowEvent
Modifier and Type | Method and Description |
---|---|
void |
windowStateChanged(WindowEvent e)
当窗口状态更改时调用。
|
void windowStateChanged(WindowEvent e)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.