How does one go about producing a field that looks like a text field but that accepts integers as integers and not as strings?
For example: If you have an applet with the following:
fieldtwo = new Panel();
fieldtwo.add(label2 = new Label ("Value One: ", Label.LEFT));
fieldtwo.add(ipadd = new TextField(30));
And then later want to do this:
one = name.getText();
How can one make the variable "one" a int and not