Results 1 to 3 of 3
- 02-18-2011, 07:56 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
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 ?
- 02-23-2011, 05:58 AM #2
Senior Member
- Join Date
- Feb 2011
- Posts
- 118
- Rep Power
- 0
Create an implementation of ComboBoxModel to have it get its data from the object you generated from JAXB.
- 02-27-2011, 10:15 AM #3
Member
- Join Date
- Feb 2010
- Posts
- 5
- Rep Power
- 0
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 10:17 AM.
Similar Threads
-
Activate JComboBox 1 when object is selected in JComboBox 2...
By bahumbaba in forum AWT / SwingReplies: 2Last Post: 12-10-2009, 01:58 PM -
3d array filled with garbage values
By jon80 in forum New To JavaReplies: 5Last Post: 01-01-2009, 10:12 PM -
How to print an object-filled array?
By Verna_Venisa in forum New To JavaReplies: 1Last Post: 10-20-2008, 08:09 PM -
How to obtain a filled and stroked GeneralPath
By Java Tip in forum java.awtReplies: 0Last Post: 06-25-2008, 10:37 AM -
HELP: Trouble with partial filled arrays
By daigre7 in forum New To JavaReplies: 1Last Post: 04-07-2008, 02:05 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks