Program For Frame In Java:----------
import javax.swing.*;
class FD extends JFrame
{
public static void main(String args[])
{
FD d=new FD();
d.setTitle("my swing frame");
d.setSize(200,250);
d.setVisible(true);
d.setLocation(20,30);
d.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
import javax.swing.*;
class FD extends JFrame
{
public static void main(String args[])
{
FD d=new FD();
d.setTitle("my swing frame");
d.setSize(200,250);
d.setVisible(true);
d.setLocation(20,30);
d.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
No comments:
Post a Comment