Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i drow lines on image with swing

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1535
 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic