★ wanayoo — archive 1999 http://java.sun.com/docs/books/tutorial/uiswing/events/WindowEventDemo.htmlNouvelle recherche | Portail wanayoo
The JavaTM Tutorial

Trail: Creating a GUI with JFC/Swing
Lesson: Writing Event Listeners

Run WindowEventDemo

Since you can't run the applet, here's a picture of it:

A snapshot of WindowEventDemo, which demonstrates the events that are fired when the window is resized, hidden, and so on.


Note: Because the preceding applet uses the Swing 1.1 API, it requires Java Plug-in 1.1.2 or Java Plug-in 1.2. It won't work with Java Plug-in 1.1.1 or uncustomized 1.1 browsers. For more information about running applets in the tutorial, refer to About Our Examples. That page includes a section about Downloading Java Plug-in.