Results 1 to 2 of 2
  1. #1
    bikashg is offline Member
    Join Date
    Apr 2010
    Posts
    13
    Rep Power
    0

    Default Best Swing widget to draw and edit image

    Dear All,

    Can u please suggest me which is the best choice of Java Swing widget with regard to displaying and editing image. I have to display a png image and let the user click over the image to do some basic things like drawing rectangle and circles.

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

    Default

    There is no component that does this. You need to learn how to do to custom painting. You can start with Custom Painting Approaches. The example paints rectanles on a JPanel, but there you can change the code to use a JLabel with an IconImage as your starting point.

Similar Threads

  1. How can i draw a circle on an image uploaded ?
    By motress in forum New To Java
    Replies: 1
    Last Post: 04-15-2010, 04:55 PM
  2. Read and draw a local image.
    By ichwar in forum New To Java
    Replies: 1
    Last Post: 07-27-2009, 02:02 PM
  3. How to capture a widget image with a GC
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 08:00 PM
  4. how to draw an arrow mark using java swing
    By sandhyau in forum AWT / Swing
    Replies: 5
    Last Post: 02-07-2008, 11:52 AM
  5. how to draw an image inside of jscrollpane
    By paty in forum Java Applets
    Replies: 1
    Last Post: 07-24-2007, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •