How can I add just numbers betwwen 0 and 255 in a FormattedTextField in Java?
I tried this way :
private JFormattedTextField text4;
//...
text4= new JFormattedTextField(paymentFormat);
text4.getValue();
text4.setColumns(3);
try {
MaskFormatter mask = new MaskFormatter("###");
mask.install(text4);
} catch (ParseException ex) {
System.out.print("Valoarea nu e corecta");
}
and it doesn`t work...