121 |
*/ |
*/ |
122 |
public boolean isCellEditable(EventObject event) |
public boolean isCellEditable(EventObject event) |
123 |
{ |
{ |
124 |
if (!(event instanceof MouseEvent)) |
if (event == null || !(event instanceof MouseEvent)) |
125 |
return true; |
return true; |
126 |
|
|
127 |
//Todo: if the right number of clicks has occured, return true; |
//Todo: if the right number of clicks has occured, return true; |
381 |
delegate = new EditorDelegate(); |
delegate = new EditorDelegate(); |
382 |
((JComboBox)editorComponent).addActionListener(delegate); |
((JComboBox)editorComponent).addActionListener(delegate); |
383 |
} |
} |
384 |
|
|
385 |
return editorComponent; |
return editorComponent; |
386 |
} // getTreeCellEditorComponent() |
} // getTreeCellEditorComponent() |
387 |
|
|