File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure 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
  • 0
  • 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: 2475
8
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
Thank you,
cc11rocks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic