🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: lost text

#709
From: GUI-Majician
Date: Wed, 29 Dec 2004 21:21
16 lines
1772 bytes
Looks to me like what your doing is serializing/de-serializing the Visual
Component and not the ListModel.  Whats happening is that when you
de-serialize, the data is loaded into the View but then its overwritten by
the Model, which has not been loaded.  This is why I always ser./de-ser. the
Model and it will update the View.  Why do you need to serialize the View
and not the Model?

If you need to serialize a container full of visual components, then you
need to split it up into serializing the models of the components, that have
one, and then serialize the attributes of the panel itself.  Make sense?

And do it in the right order,  serialize vc models, then serialize panel
attributes, and then reverse the order for de-ser so the models get loaded
last and they update the views.

GM
Technical Details
Message-ID: <41d31fc6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41d30d52$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,a60f7bec7c6371ad
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "GUI-Majician" <nospam@centurytel.net>
Newsgroups: borland.public.jbuilder.java.swing
References: <41d30d52$1@newsgroups.borland.com>
Subject: Re: lost text
Date: Wed, 29 Dec 2004 15:21:22 -0600
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 69.29.169.50
Message-ID: <41d31fc6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104355270 69.29.169.50 (29 Dec 2004 13:21:10 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail