Advertisement
sergAccount

Untitled

Dec 26th, 2020
768
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package game;
  7.  
  8. import java.awt.Graphics;
  9. import javax.swing.JPanel;
  10.  
  11. public class Pole extends JPanel{
  12.     // уровень сложности
  13.     int slogn;
  14.    
  15.     public Pole(int slogn){
  16.         this.slogn  = slogn;
  17.     }
  18.     // метод paintComponent отвечает за отображение граф информации
  19.     public void paintComponent(Graphics gr){
  20.         // вызов родительского метода paintComponent
  21.         super.paintComponent(gr);
  22.     }    
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement