Java AWT Frame Window Example
Chapter:
AWT
Last Updated:
11-06-2016 14:05:51 UTC
Program:
/* ............... START ............... */
import java.awt.Frame;
public class JavaAWTFrameWindow extends Frame {
JavaAWTFrameWindow(String title) {
super();
this.setTitle(title);
/*
* Newly created window will not be displayed until we call
* setVisible(true).
*/
this.setVisible(true);
}
public static void main(String args[]) {
JavaAWTFrameWindow window = new JavaAWTFrameWindow("Create Window Example");
}
}
/* ............... END ............... */
Output
Tags
AWT Frame Window, Java