putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), "selectNextColumnCell");
initHighlighting();
getActionMap().put("selectNextColumnCell", new SelectNextColumnCellAction());
<BUG>getActionMap().put("selectPreviousColumnCell", new SelectPreviousColumnCellAction());
setTransferHandler(new MemberTransferHandler());</BUG>
setFillsViewportHeight(true); // allow drop on empty table
setDragEnabled(true);
<BUG>setDropMode(DropMode.INSERT_ROWS);
}</BUG>
@Override

putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(
KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0, false), "selectNextColumnCell");
initHighlighting();
getActionMap().put("selectNextColumnCell", new SelectNextColumnCellAction());
getActionMap().put("selectPreviousColumnCell", new SelectPreviousColumnCellAction());
if (!GraphicsEnvironment.isHeadless()) {
setTransferHandler(new MemberTransferHandler());
setFillsViewportHeight(true); // allow drop on empty table
setDragEnabled(true);
setDropMode(DropMode.INSERT_ROWS);
}
}
@Override
