1) I want to replace the default icon with mines for the application, how to achieve that and do you guys think there's a need to do so?
2) I want to create my JTextField component which only accept key 0-9, all other keys can not even be entered in the Field, is there any solution to do that? how do you address the problem of interpreting the user input for the the seat number?
Originally posted by Alex Gregory:
you could catch a NumberFormatException to detect whether a number was entered.
SCJP2; SCJD2;
Richard Mok:
I created a class called TextFilter which extends PlainDocument to allow numeric value only for the quanity textfield. However, how can I avoid a blank textfield to be submitted?
1) I want to replace the default icon with mines for the application, how to achieve that and do you guys think there's a need to do so?
SCJP2; SCJD2;
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|