aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes java swing repaint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "java swing repaint" Watch "java swing repaint" New topic
Author

java swing repaint

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Hi, I want to draw a picture in a JLabel. When I click the image, it will draw a rectangle on it, just like tooltip.

I have tried the coding below. But it doesn't work. I get the click position X / Y , and then call repaint() to draw a rect .

Thanks

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java swing repaint
 
Similar Threads
how to paint some shape over another JComponent
Scrolling Components
Magnifying only a part of the image
Click On Image.
Image Maps