Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import javax.swing.*;
- import java.awt.*;
- public class Menu extends JPanel{
- public Menu(int width, int height){
- setLayout(new GridLayout(3, 1,200, 200));
- add(new JButton("START"));
- add(new JButton("INFORMACJE"));
- add(new JButton("WYJŚCIE Z GRY"));
- setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment