| 软件包 | 描述 |
|---|---|
| javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
| Modifier and Type | Method and Description |
|---|---|
AncestorListener[] |
JComponent.getAncestorListeners()
返回在这个组件上注册的所有祖先侦听器的数组。
|
| Modifier and Type | Method and Description |
|---|---|
void |
JComponent.addAncestorListener(AncestorListener listener)
寄存器
listener这样就会收到
AncestorEvents当它或其任何祖先移动或是有形的或无形的。
|
void |
JComponent.removeAncestorListener(AncestorListener listener)
将
listener这样它将不再接收
AncestorEvents。
|
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.