Bonjour,

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
PropertyGridPanel propertyGrid = new PropertyGridPanel();   
propertyGrid.setTitle("Property Grid");   
 
Map source = new HashMap();   
source.put("(name)", "Properties Grid");   
source.put("grouping", Boolean.FALSE);   
source.put("autoFitColumns", Boolean.TRUE);   
source.put("productionQuality", Boolean.FALSE);   
source.put("created", new Date());   
source.put("tested", Boolean.FALSE);   
source.put("version", new Float(0.1f));   
source.put("borderWidth", new Integer(1));   
propertyGrid.setSource(source);   
tabPanel.add(propertyGrid);   
eastPanel.add(tabPanel);
j'ai copier ca en exemple de code pour un PropertyGridPanel
comment je pourrais faire pour avoir au lieu de "true" ou "false" comme choix
par exmple une liste avec comme possibilité "0-2", "2-5", "5-10", "10+"
?

Merci et a bientot