Disassembled standard examples with JTree. Actually, the question arose whether it is possible to replace the JTree elements with another component, so that when deployed, for example, several JPanel appeared. The example on the image below. If this cannot be done with a JTree, then what can it be done through?

enter image description here

    1 answer 1

    You can completely change the display of tree nodes using setCellRenderer . JLabel used there by default, but you may notice this component on yours.