🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9734

Serialization problem with JDK 1.2

#9734
From: Jean-Paul Bouzigues
Date: Thu, 10 Feb 2000 00:00
38 lines
1264 bytes
Hi all,

Using JDK 1.2, I need to serialize somes JCheckBox components which have
associated toolTips. I've got the next message:

java.io.NotSerializableException: javax.swing.ToolTipManager

at java.io.ObjectOutputStream.outputObject(Compiled Code)

at java.io.ObjectOutputStream.writeObject(Compiled Code)

...

My code is (OK with jdk 1.1 !!!):

try {

      ObjectOutputStream out = new ObjectOutputStream( new
BufferedOutputStream(new FileOutputStream(file)) );

      out.writeObject(jCheckBox1.getModel()); // exception appears !!!

      out.writeObject(jCheckBox2.getModel());

      out.close();

    }
      catch (IOException e) {
      e.printStackTrace();
    }


What is the solution ?

Thanks a lot for your help.

Best Regards.
JPaul.
Technical Details
Message-ID: <87u04v$c5b1@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,d2dcd289d922d7d1,start
X-Google-Attributes: gid111d45,public
From: "Jean-Paul Bouzigues" <jbouzigu@capgemini.fr>
Subject: Serialization problem with JDK 1.2
Date: 2000/02/10
Message-ID: <87u04v$c5b1@bornews.borland.com>
X-Deja-AN: 584043586
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
Newsgroups: borland.public.jbuilder.java.swing