java how to make a mouse click event code example
Example 1: code for mouseClicked java
void mouseClicked(MouseEvent e)
Example 2: java mouseclick
public static void click(int x, int y) throws AWTException{
Robot bot = new Robot();
bot.mouseMove(x, y);
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}