Re: a little help please

From: KiLVaiDeN (KiLVaiDeN_at_CaRaMaiL.CoM)
Date: 11/29/04


Date: Mon, 29 Nov 2004 00:05:24 +0100


"phenom" wrote...
> i'm having is getting the JTextField inputs into the calculations. how do
> i take the text inputs and make them integers so i can use them to run the
> needed calculations?

String input1 = yourtextfield1.getText();
int integer1 = Integer.parseInt(input1);

Is that what you need?

K



Relevant Pages

  • Re: a little help please
    ... but i'm having trouble with the calculate ... >> the logic for the calc button is fairly straight forward, ... >> i'm having is getting the JTextField inputs into the calculations. ... >> needed calculations? ...
    (comp.lang.java.help)
  • Re: a little help please
    ... > exit are fairly simple, but i'm having trouble with the calculate button. ... > i'm having is getting the JTextField inputs into the calculations. ...
    (comp.lang.java.help)