import java.awt.*;
// to get awt
public class MyFrame1 extends Frame // Customize Frame class
{
// test Program
public static void
main(String[] arg)
{
new MyFrame1("My Frame", 50, 50);
}
// construct frame with
title and position
MyFrame1(String title, int x, int y)
{
setTitle(title);
setBackground(Color.white);
// set the background color
reshape(x, y, 500, 400);
// set the location and size
setVisible(true);
// show the frame
toFront();
}