GeeCON Prague 2014*
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


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
 
GeeCON Prague 2014
 
subject: how can i drow lines on image with swing