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
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