Add checkbox to a Jtree

Asked

Viewed 320 times

6

I’ve looked around for plenty of examples JTreeIt’s checkboxes but it all seems very complex.

Does anyone know a simple way, if there is one, to add to a JTree that I dragged to my frame, a checkbox in each of the nodes?

inserir a descrição da imagem aqui

What I wanted was to put a checkbox in each of the nodes, I’m not very familiar with the operation of the Trees, it was checkboxes in all the items in the image, except in the first.

  • 1

    in a quick search, I found several examples but none of them seem exactly easy... Yet this example seems exactly what you want, see if you can adapt to your case Link: http://stackoverflow.com/a/12870909/3792998

  • I used this http://www.jroller.com/santhosh/entry/jtree_with_checkboxes

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.