The code,which i think,should print a message on the frame that the "Mouse is clicked",when the mouse is clicked. The repaint() will get called when the mouse is clicked.
Type: Posts; User: Karthik Prabhu
The code,which i think,should print a message on the frame that the "Mouse is clicked",when the mouse is clicked. The repaint() will get called when the mouse is clicked.
import java.awt.Graphics;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JFrame;
public class MouseEvent implements...