Hi,<p> I would like to display well formed XML in a swing GUI. The main point that I would like to achieve is the "indentation", so that the user can easily read the xml file. Does anyone have any ideas about which component is best to use in this scenario? Any code would also be very helpful! As of now, I have a JTextArea, but the xml is not indented. Thus, looking forward to a way to indent xml so that it is user readable. Thanks! P.S: any other way except JTree?
posted 14 years ago
You could use the JTextArea and put the spacing in yourself. Make sure to use a mono-spaced font.