Results 1 to 3 of 3
  1. #1
    erik6048 is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default JCombobox filled from XML file. JAXB

    I have an XML file that I wnat to use to fill the choices list of a jcombobox.
    I found out about JAXB and succeeded in generating a class for the root element and all its children.
    Now how can I get from there to a functioning combobox?
    Something about adapters or comboboxmodels ?

  2. #2
    NRitH is offline Senior Member
    Join Date
    Feb 2011
    Posts
    118
    Rep Power
    0

    Default

    Create an implementation of ComboBoxModel to have it get its data from the object you generated from JAXB.

  3. #3
    erik6048 is offline Member
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Default found out !

    I finally succeeded.
    see my solution.
    It's not very elegantly done, because you have to manually edit a build file. But I see no way to solve that problem. Suggestions ?
    Last edited by erik6048; 02-27-2011 at 11:17 AM.

Similar Threads

  1. Replies: 2
    Last Post: 12-10-2009, 02:58 PM
  2. 3d array filled with garbage values
    By jon80 in forum New To Java
    Replies: 5
    Last Post: 01-01-2009, 11:12 PM
  3. How to print an object-filled array?
    By Verna_Venisa in forum New To Java
    Replies: 1
    Last Post: 10-20-2008, 09:09 PM
  4. How to obtain a filled and stroked GeneralPath
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-25-2008, 11:37 AM
  5. HELP: Trouble with partial filled arrays
    By daigre7 in forum New To Java
    Replies: 1
    Last Post: 04-07-2008, 03:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •