I would like to have a way to display the contents of an XML file in a JTree
. I have already accomplished this using DOM, by implementing a custom TreeModel
(and TreeCellRenderer
). However it is very clunky (much workaround-ery and hackery) and rather rough around the edges.
Is anyone aware of a way to get a JTree
to display the contents of an XML file, parsed with SAX?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…