satya
satya

Reputation: 11

How to make jtable as a node of jtree

I want to create a jtree with nodes of jtable and that jtable should be editable when I click on a cell. Please respond ASAP it's important to my project.

Upvotes: 1

Views: 2049

Answers (2)

trashgod
trashgod

Reputation: 205785

As an alternate design, consider JSplitPane: one pane would hold the JTree, while the other displays the JTable corresponding to the selected tree node. See Responding to Node Selection for details.

Upvotes: 2

iluxa
iluxa

Reputation: 6969

You need a custom Renderer / custom Editor. Check out these tutorials:

Try these, let us know if you're still stuck

Upvotes: 1

Related Questions