Skip to content

Instantly share code, notes, and snippets.

@sugiartocokrowibowo
Created October 5, 2019 01:25
Show Gist options
  • Save sugiartocokrowibowo/98fb987be6249ef22b6b457694326348 to your computer and use it in GitHub Desktop.
Save sugiartocokrowibowo/98fb987be6249ef22b6b457694326348 to your computer and use it in GitHub Desktop.
import javax.swing.JPanel;
import javax.swing.JFrame;
public class WindowInformatika001 extends JFrame {
public static void main(String[] args) {
WindowInformatika001 thisClass = new WindowInformatika001();
}
public WindowInformatika001() {
super();
initialize();
}
private void initialize() {
this.setSize(600, 400);
JPanel panel = new JPanel();
this.setContentPane(panel);
this.setTitle("INFORMATIKA APP");
this.setVisible(true);
this.setLocationRelativeTo(null);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment