279 |
table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]), |
table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]), |
280 |
KeyStroke.getKeyStroke |
KeyStroke.getKeyStroke |
281 |
(((KeyStroke)keys[i]).getKeyCode(), convertModifiers(((KeyStroke)keys[i]).getModifiers())), |
(((KeyStroke)keys[i]).getKeyCode(), convertModifiers(((KeyStroke)keys[i]).getModifiers())), |
282 |
JComponent.WHEN_FOCUSED); |
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); |
283 |
|
|
284 |
table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]), |
table.registerKeyboardAction(action,(String)ancestorMap.get((KeyStroke)keys[i]), |
285 |
KeyStroke.getKeyStroke |
KeyStroke.getKeyStroke |
286 |
(((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), |
(((KeyStroke)keys[i]).getKeyCode(), ((KeyStroke)keys[i]).getModifiers()), |
287 |
JComponent.WHEN_FOCUSED); |
JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); |
288 |
} |
} |
289 |
} |
} |
290 |
|
|
519 |
colModel, colMinSelected, colMaxSelected, |
colModel, colMinSelected, colMaxSelected, |
520 |
(e.getActionCommand().equals |
(e.getActionCommand().equals |
521 |
("selectPreviousRowCell")), false); |
("selectPreviousRowCell")), false); |
|
|
|
|
table.repaint(); |
|
522 |
} |
} |
523 |
else if (e.getActionCommand().equals("selectNextColumn")) |
else if (e.getActionCommand().equals("selectNextColumn")) |
524 |
{ |
{ |
606 |
// to a keyboard input but we either want to ignore that input |
// to a keyboard input but we either want to ignore that input |
607 |
// or we just haven't implemented its action yet. |
// or we just haven't implemented its action yet. |
608 |
} |
} |
609 |
|
|
610 |
|
if (table.isEditing() && e.getActionCommand() != "startEditing") |
611 |
|
table.editingCanceled(new ChangeEvent("update")); |
612 |
|
table.repaint(); |
613 |
|
|
614 |
table.scrollRectToVisible |
table.scrollRectToVisible |
615 |
(table.getCellRect(rowModel.getLeadSelectionIndex(), |
(table.getCellRect(rowModel.getLeadSelectionIndex(), |