wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes how can i drow lines on image with swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how can i drow lines on image with swing" Watch "how can i drow lines on image with swing" New topic
Author

how can i drow lines on image with swing

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
i have simple Jframe that loads image and display it on Jpanel
works great .
now i want to draw lines .. simple lines on that image
what should i look into , can you please give me link to something that does such thing ?
Thanks
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Lesson: Performing Custom Painting
Trail: 2D Graphics
Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Thanks for the reply , it is what i needed .
now i have new question and i dont know if to open new thread so i will ask it here
i have Image on jpanel and the jpanel is on InternalFrame
now i what to be able to when the Jpanel resized to center the image to the Jpanel
how can it be done ?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how can i drow lines on image with swing
 
Similar Threads
How to implement this Class Diagram implementation
how to draw lines without change background's image?
Can anyone tell me how to draw something(example: circle,lines ) on an image ?
How to male collection of lines as sinlge object
how to add background image to applet