Forums Register Login

Please Help !!!!! Can I add JCheckBox & JComboBox to JTree

+Pie Number of slices to send: Send
I have implemented a custom Tree Cell Renderer for having checkboxs on each nodes of the Jtree. I also want to put combo box with 5 values in it, from which the user can select one.
Please let me know if it is possible.
And if yes, how should i go about doing it.
Regards
Pooja
+Pie Number of slices to send: Send
Hi,
Did you mean that you want each node to have a JCheckBox *and* a JComboBox? If so, you can change your editor/renderer to handle JPanels, and then just add both Swing objects to the JPanel in each node. I've done it in past projects.
We don't have time for this. We've gotta save the moon! Or check this out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1086 times.
Similar Threads
JTree
JTree
JTree
JTree
JTree
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:05:34.