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;
709710711712713714715716717718719
setVisible(true); sp.setScrollPosition(10, 0); Toolkit t = Toolkit.getDefaultToolkit(); t.beep(); } } @SuppressWarnings("serial") static class RoundRectWindow extends SubFrame {
501502503504505506507508509510511
if (component != null) { toolkit = component.getToolkit(); } else { toolkit = Toolkit.getDefaultToolkit(); } toolkit.beep(); } // provideErrorFeedback() /** * Returns the value of the specified system desktop property by * invoking <code>Toolkit.getDefaultToolkit().getDesktopProperty()</code>.
483484485486487488489490491492493
123124125126127128129130131132133
toolkit = component.getToolkit(); } else { toolkit = Toolkit.getDefaultToolkit(); } toolkit.beep(); } // provideErrorFeedback() /** * Deletes the word that follows the current caret position. Original code * of this class by Dustin Sacks.