wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to prevent of disappearing my original image? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to prevent of disappearing my original image?" Watch "How to prevent of disappearing my original image?" New topic

How to prevent of disappearing my original image?

Bobby Marvikuan
Ranch Hand

Joined: Mar 14, 2012
Posts: 54
Hello. Can you help me with my method... I have a panel that draws some image and I need to add there something like a zoombox which appears when the user drags the mouse when I am creating my box my original image disappears. I understand why but I don't see a way to save both image and box. May be you can help=/ Cheers in advance!
Darryl Burke

Joined: May 03, 2008
Posts: 4523

Your question can't possibly be answered without knowing what Julia does to JPanel. That said, it looks like you're trying to mesh code from the net with your own (or maybe another disparate code from the net). Those codes are for drawing a selection rectangle on a JLabel that shows an ImageIcon.

Oh, and you should always respect the directives of a copyright owner, even if you change a few things.

Older Sun copyright notice here and on many other sites:

luck, db
There are no new questions, but there may be new answers.
It is sorta covered in the JavaRanch Style Guide.
subject: How to prevent of disappearing my original image?
Similar Threads
Problem in drawing a rectangle .....
Drawing rectangle with rubber band effect.
GUI Issues. Ghosting when moving JLabel via Mouse
Autoscrolling for marquee selection