No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
public void pencil1() { k1=2; setDoubleBuffered(false); cursorchange(); addMouseListener(new MouseAdapter(){ public void mousePressed(MouseEvent e){ oldX = e.getX(); oldY = e.getY(); } }); //if the mouse is pressed it sets the oldX & oldY //coordinates as the mouses x & y coordinates addMouseMotionListener(new MouseMotionAdapter(){ public void mouseDragged(MouseEvent e){ currentX = e.getX(); currentY … |
|
Hello, I need help with java. I need to create an application that is similar with paint but slightly different. Here is the description of this project that i need to work on. First, we need to display a menu that is consist of two choices which is 'custom animation' … |