This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
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

2Dgraphics object

 
Ken Ng
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I have created a graphic object using the drawPolygon().
The object is drawn on a frame.
Is it possible to save that 2D graphic object in some image file format
so that when i open the file, that image will appear in the frame.
Something similar to a workspace for u to load your document in it.

AWT newbie need help!
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you check the JFileChooser page in the java tutorial you will find some fancy bells and whistles to add to your file chooser. This one is the stripped down model.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic