Click to See Complete Forum and Search --> : JTree Question


Splatt
September 18th, 2000, 04:15 PM
Is it possible to create a JTree that has editable JTextFields and other objects at the nodes instead of plain text?

Thanks!


"There's nothing more dangerous than a resourceful idiot." ---Dilbert

poochi
September 18th, 2000, 05:22 PM
> Is it possible to create a JTree that has editable JTextFields

call jTree.setEditable(true) to get the editable tree nodes.
To activate the text field to perform editing , you have to triple click the mouse on the node.