JavaのFormattedTextFieldに0と255の間の数字だけを追加するにはどうすればよいですか?
私はこのように試しました:
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");
}
そしてそれは動作しません...