Advertisement
serg_specialist

Untitled

Nov 21st, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 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 app19;
  7.  
  8. import java.awt.event.ActionEvent;
  9. import java.awt.event.ActionListener;
  10. import javax.swing.JPanel;
  11. import javax.swing.Timer;
  12.  
  13. public class DrawPanel extends JPanel implements ActionListener{
  14. // свойства
  15. // переменная типа Timer
  16. // Timer - позволяет выполнить действие через определенный период времени
  17. Timer drawTimer;
  18. int val;
  19. // конструктор класса
  20. public DrawPanel(){
  21.  
  22. }
  23. // методы
  24. @Override
  25. public void actionPerformed(ActionEvent e) {
  26.  
  27. }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement