[RFC][Icedtea-Web]: Ensure all ports entered are numeric values
Omair Majid
omajid at redhat.com
Mon Feb 28 07:33:20 PST 2011
On 02/28/2011 10:16 AM, Deepak Bhole wrote:
> * Andrew Su<asu at redhat.com> [2011-02-27 23:28]:
>> Hello,
>>
>> This patch ensures that the port fields in itw-settings only accept numeric values.
>>
>> In this patch:
>> - New Class: NumberDocument.
>> - All port fields now use NumberDocument.
>>
>> Questions? Comments? Concerns?
>>
>
> Rather than defining a separate class, it might be better to use
> JFormatterTextField to force the field to accept numbers only.
>
net.sourceforge.jnlp.config.BasicValueValidators contains some code that
is used elsewhere to validate some values. It would be great if that
code could be reused (by JFormatterTextField) or extended to work for
this case too.
Cheers,
Omair
More information about the distro-pkg-dev
mailing list