Have you seen The  Swing Connection lately?

I think the XML approach is fine, but I think Swing team are making
changes to the XML Archivingh API. It sounds as though
mixing DTD is the wrong way to go. I think you stick with Swing XML
DTD and then load & save the UI according to that.
This would allow your XML to loaded into an IDE (like Fortye,JBuilder)
 in theory

--
Peter Pilgrim
G.O.A.T
                    "the Greatest Of All Time"



---------------------------------------- Message History 
----------------------------------------


From: S Uma <[EMAIL PROTECTED]>@eos.dk on 17/03/2001 15:22 ZE5B

DELEGATED - Sent by:     [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:
Subject:  Dynamic UI creation


Hello,

I am planning to come up with an application that recognizes a XML DTD
and
builds a User Interface based on Swing. The application is an XML
editor.

My input is DTD, and I have to throw a User Interface based on the DTD
(the DTD will give me the list of fields required in the final xml
document).
Once the user edits a document using the interface that I provide, I
have to save the UI content as XML document.
In summary, my users need not know XML, DTD to create an xml document.

My current approach is -

1. Create standard UI controls (text boxes for all the elements) in the
DTD specification.
2. Throw the UI Let the user edit the document using my interface
3. When he saves it , I will save the UI object as XML using Java's
Archiver package.
This will give me a chance to not create the UI when the user wants to
edit the document again.
4. Also create the XML document using a DOM parser and save it

I request some one to comment on my approach.

I am looking for a cleaner design to do this. Has anyone attempted a
similar solution. Could you throw some light?

Also, can I use the Archiver package (XMLOutputStream) classes to save
my UI as XML ?

Thanks
Uma



--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to