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!
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.