Added the following features: now starts with focus on the input pane, shortcut ctrl+T to translate, and after translating focus is automatically set on the first element.

This commit is contained in:
amontano 2005-08-27 01:51:40 +00:00
parent 58819cf43d
commit efec654ee8
5 changed files with 58 additions and 45 deletions

View file

@ -116,6 +116,11 @@ public class SimpleScannerPanel extends ScannerPanel implements ItemListener
add(cardPanel, BorderLayout.CENTER);
}
public void setFocusToInput()
{
txtInput.requestFocusInWindow();
}
public void itemStateChanged(ItemEvent e)
{
int n = listDefs.getSelectedIndex();