Need Help With Selection Boxes

Hi,

I'm trying to build an image editor that closely resembles Microsoft Photo Editor.  The way I have it built is that I have a JScrollPane with a JLabel on the scroll pane.  I attach the image I want to view as an icon onto the JLabel.  I want to be able to click anywhere on that icon and drag to form a selection box for cut, copy, paste operations.  I've already tried just about eveything I can think of to get it to work (including Sun's Java 2D tutorial).  Thank you for your time.
ashsaber99Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
what are you using for the selection box?
0
objectsCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ashsaber99Author Commented:
I'm actually trying to get it to draw the selection box.
0
ashsaber99Author Commented:
I got it on my own, thank you for the help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.