Swing - Displaying the contents of JCombo in JTable

<Re-post from 'New To Java' forum>

Hi,

I have created a JTable which loads a list of Strings into one of its fields as a JComboBox. The JComboBox defaults to one of the items in the list of String when the frame is loaded.

Problems:

1. When the frame is loaded, the combo box loads the list of Strings (when combobox is dropped down) but does not display any of the items in the String list, and not even the default value at loading.

2. When the item is selected via the "down arrow", the combo box still does not display the item selected. However, debugging codes to print the item selected to console were correctly executed. The combo box only displays the selection when the precise cell gets focus without the drop down.

Can someone help with this by showing me the way (with codes) to do the above? Thanks!

[865 byte] By [missing_linka] at [2007-11-26 23:10:03]
# 1
http://www.exampledepot.com/egs/javax.swing.table/ComboBox.html
mimi_tan1985a at 2007-7-10 14:05:42 > top of Java-index,Desktop,Core GUI APIs...