sydneytot 0 Newbie Poster

Can you help me in this program java applet. this is a program that the user will input one letter in all the textbox.When you typed all the letters correctly you will click the button and will prompt accepted else invalid. The letters in every textbox is fixed: A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,,W,X,Y

this is my codes:

package waley;

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

public class guess extends JApplet implements KeyListener  {

  // The output field is where the currentValue is displayed
  private Button submitButton;
  private TextField textbox,textbox1,textbox2,textbox3,textbox4,textbox5,
  					textbox6,textbox7,textbox8,textbox9,textbox10,textbox11,
  					textbox12,textbox13,textbox14,textbox15,textbox16,textbox17,
  					textbox18,textbox19,textbox20,textbox21,textbox22,textbox23,textbox24,
  					textbox25;
 
 

  public void init() {
  
    Container contentPane = this;
    contentPane.setBackground(Color.lightGray);
    BorderLayout bLayout = new BorderLayout();
   
    // Set up the outputField and add it to the contentPane
    Font font = new Font("Serif",Font.PLAIN,16);
    submitButton = new Button("SUBMIT");
    submitButton.setBackground(Color.white);
    submitButton.setFont(font);
    submitButton.addKeyListener(this);
    contentPane.add(submitButton,BorderLayout.SOUTH);

    // Prepare the textPanel
    Panel textPanel = new Panel();
    textPanel.setBackground(Color.lightGray);
    GridLayout gLayout = new GridLayout(5,5);
    textPanel.setLayout(gLayout);

    // Add all the textbox to the textPanel
      textbox = new TextField();
      textPanel.add(textbox);
      textbox1 = new TextField();
      textPanel.add(textbox1);
      textbox2 = new TextField();
      textPanel.add(textbox2);
      textbox3 = new TextField();
      textPanel.add(textbox3);
      textbox4 = new TextField();
      textPanel.add(textbox4);
      textbox5 = new TextField();
      textPanel.add(textbox5);
      textbox6 = new TextField();
      textPanel.add(textbox6);
      textbox7 = new TextField();
      textPanel.add(textbox7);
      textbox8 = new TextField();
      textPanel.add(textbox8);
      textbox9 = new TextField();
      textPanel.add(textbox9);
      textbox10 = new TextField();
      textPanel.add(textbox10);
      textbox11 = new TextField();
      textPanel.add(textbox11);
      textbox12 = new TextField();
      textPanel.add(textbox12);
      textbox13 = new TextField();
      textPanel.add(textbox13);
      textbox14 = new TextField();
      textPanel.add(textbox14);
      textbox15 = new TextField();
      textPanel.add(textbox15);
      textbox16 = new TextField();
      textPanel.add(textbox16);
      textbox17 = new TextField();
      textPanel.add(textbox17);
      textbox18 = new TextField();
      textPanel.add(textbox18);
      textbox19 = new TextField();
      textPanel.add(textbox19);
      textbox20 = new TextField();
      textPanel.add(textbox20);
      textbox21 = new TextField();
      textPanel.add(textbox21);
      textbox22 = new TextField();
      textPanel.add(textbox22);
      textbox23 = new TextField();
      textPanel.add(textbox23);
      textbox24 = new TextField();
      textPanel.add(textbox24);
 
      
    

    // Finally, add the textPanel to the contentPane
    contentPane.add(textPanel);
  }//init
  
  public void actionPerformed(ActionEvent e){
	
	  

	  
  }
}//guess applet