firstframe

import javax.swing.*;
public class firstframe
{
static JFrame frameObject;
static JFrame frameswing;
public static void main(String args[])
{
frameObject = new JFrame("Customer Details Form");
//frameObject.setDefaultCloseOperation(EXIT_ONCLOSE);
frameObject.setVisible(true);
frameObject.setSize(300,300);

frameswing = new JFrame("Swing Frame");
JButton buttonObject = new JButton ("Swing Button");
frameswing.getContentPane().add(buttonObject);
frameswing.setVisible(true);
frameswing.setSize(200,200);

}




}

Comments

Popular Posts