> Does anyone know how to create a bunch of jCheckboxes based off of some
>
> XML file? I'm trying to add some checkboxes in a jPanel, but can't
> figure out how.
I don't know the details of accessing XML through Java (I've only done it
through JavaScript), but you should check out these tutorials:
http://java.sun.com/docs/books/tutorial/uiswing/index.html (Go to the
components and find the checkbox tutorial)
http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/index.html
(This is the XML Processing tutorial -- it's a lot easier than wading
through the API yourself).
Also the packages you (may) need to be concerned about:
javax.xml
javax.xml.parsers
org.w3c.dom
henderjm@gmail.com - 04 Aug 2006 02:22 GMT
thanks for the effort, but I don't think that will help me. The
example they have for DOM is a JTree which is only one object with the
leafs and nodes being the XML portion, and I need to create many
objects that are based off of the XML file.
> > Does anyone know how to create a bunch of jCheckboxes based off of some
> >
[quoted text clipped - 13 lines]
> javax.xml.parsers
> org.w3c.dom
Andrew Thompson - 04 Aug 2006 03:07 GMT
> thanks for the effort, but ...
Please refrain from top-posting & multi-posting.
<http://groups.google.com/groups/search?enc_author=eegReBIAAAAW7Uah0FgiA3xlLOgJcq
-V8rhlH0Pnl47z4AZhN98BFg&scoring=d>
Andrew T.