Created
October 5, 2019 01:25
-
-
Save sugiartocokrowibowo/98fb987be6249ef22b6b457694326348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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