Search the web
Sign In
New User? Sign Up
JSX-ideas · Ideas on Java Serialization for XML
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Issue with styled text document containing components   Message List  
Reply | Forward Message #2187 of 2204 |
Hi Ed,

A simple first test is to try it with JOS (ie. replace
JSX.ObjectWriter with java.io.ObjectOutputStream and equivalent for
reading)

JSX emulates JOS, so this may show where the problem is.

BTW: Sun recommends XMLEncoder/Decoder for UI components - not JOS. If
you are doing *pure* UI only, this may be a better choice.

Please let me know how you go (though I might not be up much later tonight ;-)


cheers,
Brendan

PS: it's preferable if you post technical questions to the mailing
list, so others can provide help (and have access to the answers). You
can search it, too:
http://tech.groups.yahoo.com/group/JSX-ideas/

I've forwarded this email to it.



On 29/03/2008, Ed Hewlett <hewlett@syz...> wrote:
> Hi Brendan,
>
> Didn't expect an answer at 0300 Saturday morning your time.
>
> Here's the text of my original message:
>
> I'm developing a specialized editor that uses a JTextPane
containing objects that extends JComponent.
>
> My development environment is Eclipse 3.3.1 and Java 1.6.
>
> I'm using your application to i/o the styled text document to
disk. The problem occurs after reading in the document. Specifically,
I read in the document and set in on the text pane. Everything looks
good until I place the cursor on the right edge of a component then
press a key; the component disappears.
>
> Any help you can provide would be greatly appreciated.
>
> *************************************************************
> Some additional info not in the original text:
>
> Once the text pane is in this state, any additional components I
add don't show up. However, if I save the doc and reload it they show
up albeit with the above behavior.
>
> And if I compare the original document to the reloaded version
using the document equals method it return a false value. However, I
don't know that this is a valid test.
>
> **************************************************************
>
>
> Ed Hewlett
> Senior Software Engineer
> Syzygy Technologies, Inc..
> 1450 Frazee Road, Suite 701
> San Diego, CA 92108
> www.syzygy-tech.com <http://www.syzygy-tech.com/>
> Company: 619 297 0970
> Lab: 619 553 4849
> Cell: 619 981 0274
>
> ________________________________
>
>
> From: melbourne.research@... on behalf of JSX Enterprises Sales
> Sent: Fri 3/28/2008 8:52 AM
> To: Ed Hewlett
> Subject: Re: [JSX autoreply] Issue with styled text document
containing components
>
>
>
>
> HI Ed,
>
> Please resend your email about JSX - all I see is the subject line.
>
>
> cheers,
> Brendan
>
> On 29/03/2008, Ed Hewlett <hewlett@...> wrote:
> > Will do.
> >
> > Hope to hear from someone soon.
> >
> > Ed Hewlett
> > Senior Software Engineer
> > Syzygy Technologies, Inc..
> > 1450 Frazee Road, Suite 701
> > San Diego, CA 92108
> > www.syzygy-tech.com <http://www.syzygy-tech.com/>
> > Company: 619 297 0970
> > Lab: 619 553 4849
> > Cell: 619 981 0274
> >
> > ________________________________
> >
> > From: JSX Enterprises Sales [mailto:sales@...]
> > Sent: Thu 3/27/2008 4:37 PM
> > To: Ed Hewlett
> > Subject: [JSX autoreply] Issue with styled text document
containing components
> >
> >
> >
> > Hi,
> >
> > Please include "JSX" somewhere in the subject (otherwise we
don't see it).
> >
> > This is for spam protection.
> >
> > Sorry for the hassle - spam is just awful.
> >
> >
> > cheers,
> > Brendan Macmillan
> >
> >
> >
> >
>
>
> --
> The competent programmer is fully aware of the strictly limited size
> of his own skull; therefore he approaches the programming task in full
> humility, and among other things he avoids clever tricks like the
> plague. - Dijkstra
>
>
>
>



--

The competent programmer is fully aware of the strictly limited size
of his own skull; therefore he approaches the programming task in full
humility, and among other things he avoids clever tricks like the
plague. - Dijkstra


--
The competent programmer is fully aware of the strictly limited size
of his own skull; therefore he approaches the programming task in full
humility, and among other things he avoids clever tricks like the
plague. - Dijkstra



Sat Mar 29, 2008 5:02 pm

egroups_yow
Offline Offline
Send Email Send Email

Forward
Message #2187 of 2204 |
Expand Messages Author Sort by Date

Hi Ed, A simple first test is to try it with JOS (ie. replace JSX.ObjectWriter with java.io.ObjectOutputStream and equivalent for reading) JSX emulates JOS, so...
Brendan Macmillan
egroups_yow
Offline Send Email
Mar 29, 2008
5:02 pm

Hi Ed, OK, I've just had a look at the attachments, and I don't see any obvious problems. Because JOS behaves the same as JSX, it sounds like a bug in the code...
Brendan Macmillan
egroups_yow
Offline Send Email
Mar 29, 2008
5:04 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help