georgesakiki / ift215-georges

project
0 stars 0 forks source link

design #1

Open georgesakiki opened 9 years ago

georgesakiki commented 9 years ago

how to make text field only 4 characters ?

eddyghabachlcu commented 9 years ago

You can use a code similar to this within a keyTyped event:

if(jTextField1.getText().length()>=4){ evt.consume(); }

georgesakiki commented 9 years ago

okey thank u :)