Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyTableCellEditor extends AbstractCellEditor implements TableCellEditor {
- JComponent component = new JComboBox();
- component.addItem( new JLabel( "test" ) );
- component.addItem( new JLabel( "test2" ) );
- public Component getTableCellEditorComponent(JTable table, Object value,
- boolean isSelected, int rowIndex, int vColIndex) {
- return component;
- }
- public Object getCellEditorValue() {
- return "test";
- }
- }
Add Comment
Please, Sign In to add comment