Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 8th, 2006, 06:35 PM
Authorized User
 
Join Date: Jul 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ironchef
Default writing an object to a file

So i'm trying to make it so my program can write shapes to a file. of course, shapes aren't serializable, so I have to include and overridden writeObject() method to write the shae to the file. The code below isn't working, but i dont know why. Please help...

private void writeObject(ObjectOutputStream out) throws IOException {
  out.writeDouble(ellipse.width);
  out.writeDouble(ellipse.height);
}



IronChef - http://www.freewebs.com/cool_recipes
__________________
<b>IronChef</b> - http://www.freewebs.com/cool_recipes





Similar Threads
Thread Thread Starter Forum Replies Last Post
writing into a file in linux file system anboss XSLT 6 June 19th, 2008 01:56 PM
writing a shape to a file ironchef Java Basics 0 November 8th, 2006 06:35 PM
writing into xml file jerryjohn XML 1 August 18th, 2006 02:40 AM
Writing to Text File striker9 ASP.NET 2.0 Basics 1 May 12th, 2006 05:17 AM
writing to am xml file MOU Classic ASP XML 0 July 6th, 2005 07:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.