This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.swing.*; | |
import java.awt.*; | |
import java.util.*; | |
import java.awt.event.*; | |
import javax.swing.event.MouseInputAdapter; | |
@SuppressWarnings("serial") | |
public class Main extends JPanel implements ActionListener { | |
public static final double XSPEED = .0000001; | |
public static final double YSPEED = .0000001; | |
int startX, startY, endX, endY, adding=0; |