[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

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.
0
ashsaber99
Asked:
ashsaber99
  • 2
  • 2
1 Solution
 
objectsCommented:
what are you using for the selection box?
0
 
objectsCommented:
0
 
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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now