Create a Frame in Java AWT
In this section, you will how to create a frame in java awt.
Code:
import java.awt.Frame;
public class CreateFrame {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Frame frame = new Frame();
frame.setTitle("Welcome to Developerhelpway.com");
frame.setSize(200,200);
frame.setVisible(true);
}
}
|
Output:
Download Example