});\r
}\r
\r
- /**\r
- * DOCUMENT ME!\r
- *\r
- * @param e DOCUMENT ME!\r
- */\r
- public void textfield_actionPerformed(ActionEvent e)\r
- {\r
- doSearch(false);\r
- }\r
\r
/**\r
* DOCUMENT ME!\r
{\r
createNewGroup.setEnabled(false);\r
\r
- String searchString = textfield.getText().toUpperCase();\r
+ String searchString = textfield.getText().toUpperCase().trim();\r
\r
com.stevesoft.pat.Regex regex = new com.stevesoft.pat.Regex(searchString);\r
\r
textfield_caretUpdate(e);\r
}\r
});\r
+ textfield.addKeyListener(new java.awt.event.KeyAdapter() {\r
+ public void keyPressed(KeyEvent e) {\r
+ textfield_keyPressed(e);\r
+ }\r
+ });\r
+\r
borderLayout1.setHgap(5);\r
borderLayout1.setVgap(5);\r
jPanel4.setLayout(borderLayout2);\r
{\r
}\r
\r
- protected void textfield_actionPerformed(ActionEvent e)\r
- {\r
- }\r
\r
- void textfield_keyTyped(KeyEvent e)\r
+ protected void textfield_keyPressed(KeyEvent e)\r
{\r
+ if(e.getKeyCode()==KeyEvent.VK_ENTER)\r
+ {\r
+ findNext_actionPerformed(null);\r
+ }\r
findNext.setEnabled(true);\r
}\r
\r