简体   繁体   中英

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.

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM