Single Selection function on Panel

Hi,

I'm making a project with a Panel (A), inside the panel will contains some self-made components that are listed in the Panel like "Large Icon view mode" in the Window explorer.

what I want to do is to make this panel to has a single selection mode as same as JTable. I would like to let it able to reset all selection of components, and only able to select one component at every time.

Any idea I can implement this Panel A ?

Thanks

[471 byte] By [mcstevenjpa] at [2007-11-27 5:58:21]
# 1
How do you do it now, and what are the results?
rebola at 2007-7-12 16:32:49 > top of Java-index,Desktop,Core GUI APIs...
# 2

I just tried to implement the Panel to simulate the single selection.

Inside the PanelA has an ArrayList to collect each inserted components (self created child panel).

Panel A handle the selection of child objects, if one object selected, PanelA will reset other objects selection.

It looks work, but is it a good way to do ?

mcstevenjpa at 2007-7-12 16:32:49 > top of Java-index,Desktop,Core GUI APIs...
# 3
If you don't want to implement a SelectionModel, I guess what you've done is the best way to do it.
rebola at 2007-7-12 16:32:49 > top of Java-index,Desktop,Core GUI APIs...