151152153154155156157158159160161
_activate(item); return; } } } term.beep(); } } // end of processKeyEvent() public boolean wasCancelled() { return _wasCancelled;
128129130131132133134135136137138
getParent().previousFocus(); return; case KeyEvent.VK_ENTER: if ( !super.isEnabled()) { term.beep(); return; } super.setSelected( ! super.isSelected()); // post an ItemEvent
233234235236237238239240241242243
getParent().previousFocus(); return; } else if (key == KeyEvent.VK_UP) { if (_currentRow == 0) term.beep(); else { _currentRow--; int x=0; for (int i=0; i<_currentColumn; i++) x += getColumnWidth(i) + 1;
246247248249250251252253254255256
new Point(x, _currentRow+1))); } } else if (key == KeyEvent.VK_DOWN) { if (_currentRow == _model.getRowCount() - 1) term.beep(); else { _currentRow++; int x=0; for (int i=0; i<_currentColumn; i++) x += getColumnWidth(i) + 1;
259260261262263264265266267268269
new Point(x, _currentRow+2))); } } else if (key == KeyEvent.VK_LEFT) { if (_currentColumn == 0) term.beep(); else { _currentColumn--; int x=0; for (int i=0; i<_currentColumn; i++) x += getColumnWidth(i) + 1;
272273274275276277278279280281282
new Point(x, _currentRow))); } } else if (key == KeyEvent.VK_RIGHT) { if (_currentColumn == _model.getColumnCount() - 1) term.beep(); else { _currentColumn++; int x=0; for (int i=0; i<=_currentColumn; i++) x += getColumnWidth(i) + 1;