Jtable as a Jtree Node
I know you can create a table and add a JTree as a column . But what I want to do is the complete opposite. Check the image and tell me if this is possible. Thanks! UPDATE: By using MKorbel's code and by randomizing the number of columns with the following code: @Override public int getColumnCount() { int i = (int) (Math.random( )* 10.0); if (i%2 ==0) return 2; else return 3; } I was able to get the following image: mKorbel 1) I didn't solve isLeaf() in Renderer and Editor somehow 2) if I put JScrollPane with JTable to the Node directly, (without using JPanel as parent ) then JTree View isn't