J
jonasmin
I have problem with setting the JTextField text. here you see some of
my code:
if (in1.getText().length() > 10){
JOptionPane.showMessageDialog(null, "Error", "Error",
JOptionPane.WARNING_MESSAGE);
in1.setText("");
}
in1 - JTextField. But when i axecute the program it does nothing. It
shows the WARNING_MESSAGE, but it does nothing with text. where can be
the problem?
my code:
if (in1.getText().length() > 10){
JOptionPane.showMessageDialog(null, "Error", "Error",
JOptionPane.WARNING_MESSAGE);
in1.setText("");
}
in1 - JTextField. But when i axecute the program it does nothing. It
shows the WARNING_MESSAGE, but it does nothing with text. where can be
the problem?