How to Create Java frame Application Siple Program
Advance Java jframe SimpleTutorial
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.Color;
public class One extends JFrame
{
public One()
{
getContentPane().setBackground(Color.orange);
setSize(300,200);
setLayout(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLocation(100, 100);
setVisible(true);
}
public static void main(String s[])
{
One obj=new One();
}
}