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);
{
}
- protected void textfield_keyPressed(KeyEvent e)
- {
- if (e.getKeyCode() == KeyEvent.VK_ENTER)
- {
- e.consume();
- findNext_actionPerformed(null);
- }
- }
public void createFeatures_actionPerformed()
{