Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.zetcode;
- import java.awt.EventQueue;
- import javax.swing.JFrame;
- public class SimpleEx extends JFrame {
- public SimpleEx() {
- initUI();
- }
- private void initUI() {
- setTitle("Simple example");
- setSize(300, 200);
- setLocationRelativeTo(null);
- setDefaultCloseOperation(EXIT_ON_CLOSE);
- }
- public static void main(String[] args) {
- EventQueue.invokeLater(() -> {
- SimpleEx ex = new SimpleEx();
- ex.setVisible(true);
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement