I'm trying to create a program on NetBeans that allows me to load an image into an internal frame. Then I can click on the image and a box pops up, basically just like the one on facebook. Im done with the loading and image part. Now, I"m working on the box.
Here's my code:
private void jInternalFrame1MouseClicked(java.awt.event.MouseEvent evt) {
}
My professor showed us something that goes inside the above code, but I don't know how to code it in. Anyone care to explain? :D Thanks guys! Been so helpful
public void mouseClicked (MouseEvent arg0)
this.x = arg0,getX();
this.y = arg0.getY();
this.repaint();