You will need to extend the functionality of the JTree to accomplish this by writing your own TreeCellEditor and DefaultMutableTreeNode. Some sample code here and here. Personally, I would go with...