Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Example code of JFrame with a line

 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to learn Java 2D. I need an example to get me started. Could someone provide me a working example of a JFrame with a line. This is all i need. I have looked at many tutorials and am trying to get started.
Thanks,
cc11rocks
 
Rob Camick
Ranch Hand
Posts: 2534
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start with the Custom Painting section from the Swing tutorial. Read the Graphics API to find the method that is used to draw a line.
 
john price
Ranch Hand
Posts: 495
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
Thank you,
cc11rocks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic