JTree Expand
From: Jean-Philippe Martin (jpmartin_at_student.info.ucl.ac.be)
Date: 02/29/04
- Next message: Neil Morris: "compiling ordering of java sorce code"
- Previous message: Jean-Philippe Martin: "Re: JButton prob :os"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Feb 2004 18:45:55 +0100
Hi all,
I've got a little question (as usual ;o) ), this time it's about JTree.
I've got a XML Document (DOM) parsed under JTree and this JTree is
displayed in a JFrame.
I'm able to add element to the XML Document with another JFrame. When I add
a element to the Document, the JTree is reloaded to match the Document's
content.
But when I reload the tree, I would like to keep my last selected item.
Currently, when I reload the tree the root collapse.
I've try to keep the TreePath of the selected item in the Jtree before doing
the reload and then expand the saved TreePath but it doesn't work.
I will earn much more time by asking you some help than trying it myself.
Thanks in advance, Jean-Philippr.
- Next message: Neil Morris: "compiling ordering of java sorce code"
- Previous message: Jean-Philippe Martin: "Re: JButton prob :os"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]