I can't seem to get my button to work right. I am just starting Java and I
am trying to get the button the retrieve the information from the text box
and put it though the if else statement. I think the problem is that the
button dosent know how to get the info from the text box. If anyone can help
if you like you can email me.

Here is the code:

// import classes

import java.awt.*;
import java.awt.event.*;
import java.applet.*;



public class Bible extends Applet implements ActionListener {

Button button1;
TextField input;
TextField output;
Label a;
Label b;
Font font1;

public void init() {

// create button
button1 = new Button( "Press this suka!" );
button1.addActionListener( this );
button1.FocusListener( input );

// create text fields
input = new TextField( 2 );
input.addActionListener( this );
output = new TextField( 50 );
output.setEditable( false );

// create labels
a = new Label( "Enter a number of 1!" );
b = new Label( "Here is your verse:" );

// add GUI components
add( a );
add( input );
add( button1 );
add( b );
add( output );

// set background color and font
font1 = new Font( "SansSerif", Font.BOLD, 17 );
setFont( font1 );
setBackground( Color.blue );

}

public void actionPerformed( ActionEvent e )
{
String var = e.getActionCommand();


// set text to nothing on run
input.setText( "" );
output.setText( "" );
showStatus( "Bible applet!" );


if ( var.charAt( 0 ) == '1' )
output.setText( "Bible Verse 1" );


else
output.setText( "Only input number 1 please!" );


}

}