This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes 2Dgraphics object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "2Dgraphics object" Watch "2Dgraphics object" New topic

2Dgraphics object

Ken Ng

Joined: Feb 14, 2004
Posts: 26
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

Joined: Jan 14, 2004
Posts: 1535
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.
Don't get me started about those stupid light bulbs.
subject: 2Dgraphics object
Similar Threads
Adding an image to a frame
several animation frames in one file, transparency issues
Boardgame to interactive GUI -- need help
whats wrong with Jimi
how to use image ?