javax gui example

https://‮.www‬lautturi.com
javax gui example
import javax.swing.*;
class gui{
    public static void main(String args[]){
       JFrame frame = new JFrame("My First GUI");
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       frame.setSize(300,300);
       JButton button = new JButton("Click me");
       frame.getContentPane().add(button);
       frame.setVisible(true);
    }
}
Created Time:2017-09-24 22:29:16  Author:lautturi