Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- import java.io.File;
- public class Okno extends JFrame{
- public Okno(int w_okno, int h_okno) {
- super("Witaj w grze!");
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setLocation(450, 150);
- setSize(w_okno, h_okno);
- setResizable(false);
- //JPanel tlo_gry = new Pole_gry(); //nie wiem czemu nie dziaΕa, linijka z javastart
- //Pole_gry ustaw_tlo = new Pole_gry();
- //add(ustaw_tlo); // --''--
- add(new Pole_gry(w_okno,h_okno));
- setVisible(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment