< prev index next >

src/java.desktop/share/classes/java/awt/Window.java

Print this page

        

*** 1928,1938 **** * * You can specify the {@code listenerType} argument * with a class literal, such as * <code><em>Foo</em>Listener.class</code>. * For example, you can query a ! * {@code Window} {@code w} * for its window listeners with the following code: * * <pre>WindowListener[] wls = (WindowListener[])(w.getListeners(WindowListener.class));</pre> * * If no such listeners exist, this method returns an empty array. --- 1928,1938 ---- * * You can specify the {@code listenerType} argument * with a class literal, such as * <code><em>Foo</em>Listener.class</code>. * For example, you can query a ! * {@code Window w} * for its window listeners with the following code: * * <pre>WindowListener[] wls = (WindowListener[])(w.getListeners(WindowListener.class));</pre> * * If no such listeners exist, this method returns an empty array.
< prev index next >