Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2005

Tip: Looking for answers? Try searching our database.

Swing text (XML) view control with autoformat?

Thread view: 
Michael Yashin - 18 May 2005 15:55 GMT
Hi,

We need to display XML files in a Swing GUI. The XML is automatically
generated so it is absolutelly unadapted to human viewing.

So we need some Swing control that can format XML and show it.
Or use some XML formatting tool and display results in simple
JTextPane or something like this.

Any ideas?

Regards,
Michael Yashin
John - 20 May 2005 10:22 GMT
> Hi,
>
[quoted text clipped - 9 lines]
> Regards,
> Michael Yashin

I would probably parse the document to a DOM that was also a TableModel
and then use JTree to display it.

john
yashin@reksoft.ru - 30 May 2005 14:15 GMT
Hope it will be useful for somebody...

We've found free XML formatter
http://homepage.ntlworld.com/wayne_grant/xmlformatter.html

So we parse XML to DOM then format using XMLFormatter and show using
JTextPane. Rather simple :)

Mike.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.