..
> I have a JTextField which receives at runtime a value. Now this value
> has to be inserted with a specialtype (not text) in a database.
From the runtime the values in a JTextField have to be assigned to
variables with the following datatype:
short
byte
int
I don't know how to do that!
For any help
Thank you
Tamer
Andrew Thompson schrieb:
> ..
>> I have a JTextField which receives at runtime a value. Now this value
[quoted text clipped - 4 lines]
>
> Andrew T.
Patricia Shanahan - 28 Feb 2007 16:02 GMT
> From the runtime the values in a JTextField have to be assigned to
> variables with the following datatype:
[quoted text clipped - 4 lines]
>
> I don't know how to do that!
Short.parseShort(String s)
Byte.parseByte(String s)
Integer.parseInt(String s)
More generally, if you need to do something with e.g. an int and don't
know how to do it, it is always worth scanning the methods in Integer to
see if one helps.
Patricia