クラス
javax.swing.event.AncestorEventの使用

AncestorEventを使用するパッケージ
パッケージ
説明
Swingコンポーネントによってトリガーされるイベントを提供します。
  • javax.swing.eventでのAncestorEventの使用

    AncestorEventのパラメータを持つjavax.swing.eventのメソッド
    修飾子と型
    メソッド
    説明
    void
    AncestorListener.ancestorAdded(AncestorEvent event)
    setVisible(true)が呼び出されるか、あるいはコンポーネント階層に追加されることによって、ソースまたはその祖先の1つが可視にされたときに呼び出されます。
    void
    AncestorListener.ancestorMoved(AncestorEvent event)
    ソースまたはその祖先の1つが移動したときに呼び出されます。
    void
    AncestorListener.ancestorRemoved(AncestorEvent event)
    呼び出されるsetVisible(false)またはコンポーネント階層から削除されるsetVisible(false)によって、ソースまたはその祖先のいずれかが非表示になるときに呼び出されます。