SOLVED: I’m lame sorry guys:
public void keyPressed(KeyEvent e) {
int ID = e.getKeyCode();
if (ID == 8) { /* Backspace Button */
if (userNameField.getText().length() == 0) {
e.consume();
}
}
}
Hello JGO :o
I have a JFrame, it contains 2 JTextField’s, and multiple JPanel’s (JPanel’s are painting constantly).
Whenever I have one of the TextField’s selected, if I hit ‘back space’ it causes my JPanel’s paint rate to significantly speed up?
Picture:
Note: While I hit backspace, this glitch only occurs while there’s NO text in the field.
I could supply some source code, if need be.
(How I noticed this was that the physics of the spheres would speed up)