Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package views.Demonstration;
- import java.awt.FlowLayout;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- public class GUI {
- private final JFrame frame = new JFrame("Demonstração");
- private JPanel mainPanel;
- public static void main(String[] args) {
- GUI gui = new GUI();
- gui.init();
- }
- private void init() {
- frame.setSize(800, 450);
- frame.setResizable(false);
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.getContentPane().setLayout(new FlowLayout());
- mainPanel = new MainPanel();
- frame.getContentPane().add(mainPanel);
- frame.setVisible(true);
- }
- }
Add Comment
Please, Sign In to add comment