Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  simpleGui.java
Language: JAVA
Code:
import javax.swing.*;
public class simpleGui {

    public static void main(String[] args) {
    JFrame jf=new JFrame();
    JButton jb=new JButton("click me");
    jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    jf.getContentPane().add(jb);
    jf.setSize(50,50);
    jf.setVisible(true);
    }

}          
Comments: