I think your code in JTextField Text = new JTextField();
you can write on brackets. for example you want 15 number in your textfield. So, JTextField Text = new JTextField(15);
and then, You must...