import java.awt.GridLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
import javax.swing.JButton;
import javax.swing.JCheckBox;
textfield_caretUpdate(e);
}
});
-
+ searchBox.getEditor().getEditorComponent()
+ .addKeyListener(new java.awt.event.KeyAdapter()
+ {
+ @Override
+ public void keyPressed(KeyEvent e)
+ {
+ textfield_keyPressed(e);
+ }
+ });
mainBorderLayout.setHgap(5);
mainBorderLayout.setVgap(5);
jPanel4.setLayout(borderLayout2);
jPanel4.add(optionsPanel, java.awt.BorderLayout.WEST);
}
+ protected void textfield_keyPressed(KeyEvent e)
+ {
+ if (e.getKeyCode() == KeyEvent.VK_ENTER)
+ {
+ if (!searchBox.isPopupVisible())
+ {
+ e.consume();
+ findNext_actionPerformed(null);
+ }
+ }
+ }
+
protected void findNext_actionPerformed(ActionEvent e)
{
}