Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package app19;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import javax.swing.JPanel;
- import javax.swing.Timer;
- public class DrawPanel extends JPanel implements ActionListener{
- // свойства
- // переменная типа Timer
- // Timer - позволяет выполнить действие через определенный период времени
- Timer drawTimer;
- int val;
- // конструктор класса
- public DrawPanel(){
- }
- // методы
- @Override
- public void actionPerformed(ActionEvent e) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement