java

TwitterFacebook
Get flash to fully experience Pearltrees
bipolar

How to Write Window Listeners (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)

Maximizing the window — Increasing a window's size to the maximum allowable size, either in the vertical direction, the horizontal direction, or both directions. The WindowListener interface defines methods that handle most window events, such as the events for opening and closing the window, activation and deactivation of the window, and iconification and deiconification of the window. The other two window listener interfaces are WindowFocusListener and WindowStateListener . WindowFocusListener contains methods to detect when the window becomes the focus owner or it loses the focus owner status. WindowStateListener has a single method to detect a change to the state of the window, such as when the window is iconified, deiconified, maximized, or restored to normal. http://download.oracle.com/javase/tutorial/uiswing/events/windowlistener.html
class Override { public static void main(String args[]) { B subOb = new B(1, 2, 3); subOb.show(); // this calls show() in B } } The output produced by this program is shown here: k: 3 When show( ) is invoked on an object of type B , the version of show( ) defined within B is used. That is, the versio n of show( ) inside B overrides the version declared in A .

Method Overriding in Java

http://www.java-samples.com/showtutorial.php?tutorialid=287
Hierarchy For Package java.awt Package Hierarchies: All Packages Class Hierarchy java.lang.

java.awt Class Hierarchy (Java Platform SE 6)

http://download.oracle.com/javase/6/docs/api/java/awt/package-tree.html