369 |
delegate = new EditorDelegate(); |
delegate = new EditorDelegate(); |
370 |
((JTextField)editorComponent).addActionListener(delegate); |
((JTextField)editorComponent).addActionListener(delegate); |
371 |
} |
} |
372 |
else |
else if (editorComponent instanceof JCheckBox) |
373 |
{ |
{ |
374 |
// TODO |
((JCheckBox)editorComponent).setText(value.toString()); |
375 |
|
delegate = new EditorDelegate(); |
376 |
|
((JCheckBox)editorComponent).addActionListener(delegate); |
377 |
|
} |
378 |
|
else if (editorComponent instanceof JComboBox) |
379 |
|
{ |
380 |
|
((JComboBox)editorComponent).setSelectedItem(value.toString()); |
381 |
|
delegate = new EditorDelegate(); |
382 |
|
((JComboBox)editorComponent).addActionListener(delegate); |
383 |
} |
} |
384 |
|
|
385 |
return editorComponent; |
return editorComponent; |