Dynamic JComboBox

Hello ,

Is it possible to implement a dynamic combobox.

I mean, e.g.:

A combobox that originally takes on the following values:

e.g.: color, function and identity

and if you press color, the list changes to contain only colors: e.g.: blue, brown, cyan, ...?

Is it possible to reply with an example?

Thanx a lot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Evi

[413 byte] By [EviB] at [2007-9-26 1:52:12]
# 1
ComboBoxModel handle both selected value and all values at the same time. Write your own ComboBoxModel to do something more or less like:1) trap selection change through setSelectedItem2) load in data for that item,3) reset the selection4) fire listeners
Titie at 2007-6-29 3:01:36 > top of Java-index,Archived Forums,Swing...