Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

applets displaying info

Status
Not open for further replies.

ewan91

Programmer
Jun 25, 2001
13
GB
hello

i'm developing an applet for a basic currency converter but it won't display the result at the moment


this is the button cathcher class, it should set the testReturn TextField with the converted figure (double the inputted figure at the moment)
anyone know what is wrong with it?

class ButtonCatcher implements ActionListener
{
public void actionPerformed( ActionEvent evt )
{
if ( evt.getSource( ) == convert )
{
strText.setText( "Click here to convert again ");
String money = textMoney.getText( );
int fred = Integer.parseInt(money);
int rod = fred*2;

textReturn.setText( "rod" );
calcPanel.repaint( );
}
}
}


thanks
ewan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top