adding the same JCombo multiple times?

hi, if i have a tabbed pane where i need the same combo box (or a combo box with the same entries) on 3 ofthe 4 panes, is it ok to just add the same combo to each JPanel in these tabs? are there any undesirable sideeffects to doing so? thanks, Peter
[270 byte] By [pnandrus] at [2007-9-30 17:32:28]
# 1
It won't work. A component must have exactly one parent. If the combo box is common to all tabs, consider putting it outside the tab pane altogether. Otherwise duplicate it once for each tab page.
scorbett at 2007-7-6 13:55:40 > top of Java-index,Archived Forums,Socket Programming...
# 2
Ok, thanks for the explanationi, that makes sense now....
pnandrus at 2007-7-6 13:55:40 > top of Java-index,Archived Forums,Socket Programming...
# 3
You could use a seperate combo for each but have them all share the same model.
objects_au at 2007-7-6 13:55:40 > top of Java-index,Archived Forums,Socket Programming...