This is my Coding, Please Test it and help! Thanks, My Java EE doesnt Work!

Ok I am not sure if all the coding will fit here. Its a Wheel Of Fortune Based Game.
But I need it modifyied so that all the labels are in the right cordinates(Cant Speel)
ANd all the buttons and Text Boxes. I cant tell as i cant run java but i was wondering if anyone is able to test my coding and rearrange all the little Command Buttons and Labels so that they are right I would be Greatly Appreciated.
Email: [email protected]
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class WheelNWord extends Applet implements ActionListener, Runnable
Image img,winBuff,imgArrow;
Button but1,P1mode,P2mode;
Button ButVowel,guessB;
Thread runner;
Graphics buff;
int xpoints[] = {157,147,137},
ypoints[] = {275,265,275};
int i=0,eg=0,rand=0,ErrorCount=0,ER=0;
int score1, score2, dat1, dat2;
boolean next1 = false, next2 = true,Cool=true, DoA,DoE,DoI,DoO,DoU;
AudioClip clip1;
TextField txtPlayer1 = new TextField(12);
TextField txtPlayer2 = new TextField(12);
TextField txtGuess = new TextField(12);
Label lblPlayer1 = new Label("Player 1");
Label lblPlayer2 = new Label("Player 2");
Label lblScore = new Label("");
Label lblTurn = new Label("Player 1 Your turn!");
Label lblCover;
Label lbllive = new Label("You are allowed 5 Errors");
     char words[];
     String SecretWord,str;
     Button But[]=new Button[26];
     Label lblWord = new Label("This Is where the Hidden Word will appear");
     String Words[]={"Joe","James","Jerry","Wendy","Eros","Brett","Kirby"};
public void init ()
     P1mode = new Button("1 PLAYER MODE");
     add(P1mode);
     P1mode.addActionListener(this);
     P1mode.setFont(new Font("Arial",Font.BOLD, 10));
     P2mode = new Button("2 PLAYER MODE");
     add(P2mode);
     P2mode.addActionListener(this);
     P2mode.setFont(new Font("Arial",Font.BOLD, 10));
     lblCover = new Label();
     add(lblCover);
winBuff = createImage(this.getSize().width,this.getSize().height);
buff = winBuff.getGraphics();
img = getImage(getCodeBase(),"Wheel0.jpg");
but1 = new Button("Spin");
guessB = new Button("Guess");
add(guessB);
guessB.addActionListener(this);
add (but1);
but1.addActionListener(this);
add(lblWord);
add(lblTurn);
add(lblScore);
add(lblPlayer1);
add(lblPlayer2);
add(lbllive);
add(txtPlayer1);
add(txtPlayer2);
add(txtGuess);
ButVowel = new Button("Buy Vowel");
add (ButVowel);
ButVowel.addActionListener(this);
ButVowel.setEnabled(false);
lbllive.setFont(new Font("Arial",Font.BOLD, 15));
lbllive.setSize(200,20);
for (int i = 0; i < 26; i++)
But=new Button(""+ (char)(65+i));
add(But[i]);
But[i].addActionListener(this);
But[i].setVisible(false);
But[0].setBackground(Color.cyan);
But[0].setEnabled(false);
But[4].setBackground(Color.cyan);
But[4].setEnabled(false);
But[8].setBackground(Color.cyan);
But[8].setEnabled(false);
But[14].setBackground(Color.cyan);
But[14].setEnabled(false);
But[20].setBackground(Color.cyan);
But[20].setEnabled(false);
RandomiseWords();
ProcessSecretWord();
public void paint (Graphics g)
     lblCover.setSize(600,500);
lblCover.setLocation(0,0);
but1.setLocation(150,320);
buff.setColor(this.getBackground());
buff.fillRect(0,0,this.getSize().width,this.getSize().height);
buff.setColor(Color.black);
buff.drawImage(img,25,25,this);
buff.drawImage(imgArrow,320,170,this);
g.drawImage(winBuff,25,25,this);
g.fillPolygon(xpoints,ypoints,3);
lblScore.setSize(100,20);
lblScore.setLocation(120,10);
lblScore.setFont(new Font("Arial",Font.BOLD, 20));
lblWord.setSize(150,20);
lblWord.setLocation(120,365);
lblPlayer1.setSize(100,20);
lblPlayer1.setLocation(300,10);
lblPlayer2.setSize(100,20);
lblPlayer2.setLocation(300,50);
txtPlayer1.setSize(100,20);
txtPlayer1.setLocation(450,450);
txtPlayer2.setSize(100,20);
txtPlayer2.setLocation(450,475);
txtGuess.setLocation(450,230);
lblTurn.setSize(150,20);
lblTurn.setLocation(400,150);
lblTurn.setFont(new Font("Arial",Font.BOLD, 15));
lbllive.setLocation(340,100);
ButVowel.setLocation(500,50);
P1mode.setLocation(100,200);
P1mode.setSize(200,50);
P2mode.setLocation(300,200);
P2mode.setSize(200,50);
guessB.setLocation(500,200);
for (int i = 0; i < 26; i++)But[i].setSize(20,20);
          for (int i = 0; i < 13; i++)
But[i].setLocation(i*21+20,400);
But[i+13].setLocation(i*21+20,430);
public final void update(Graphics g)
paint(g);
public void actionPerformed(ActionEvent evt)
String command,Guess;
Guess = txtGuess.getText();
     command=evt.getActionCommand();
for (int i = 0; i < 26; i++)
               if (command.equals(""+(char)(65+i)))
But[i].setEnabled(false);
CheckLetter(""+(char)(65+i),(char)(65+i));
          if (command.equals("1 PLAYER MODE"))
               lblCover.setVisible(false);
               P1mode.setVisible(false);
               P2mode.setVisible(false);
               txtPlayer2.setVisible(false);
               lblPlayer2.setVisible(false);
               next1 = true;
          if (command.equals("2 PLAYER MODE"))
               lblCover.setVisible(false);
               P1mode.setVisible(false);
               P2mode.setVisible(false);
               lbllive.setVisible(false);
if (command.equals("A")) //for buying vowels
But[0].setBackground(Color.red);
But[4].setEnabled(false);
But[8].setEnabled(false);
But[14].setEnabled(false);
But[20].setEnabled(false);
DoA = true;
if (command.equals("E"))
But[4].setBackground(Color.red);
But[0].setEnabled(false);
But[8].setEnabled(false);
But[14].setEnabled(false);
But[20].setEnabled(false);
DoE = true;
if (command.equals("I")) //for buying vowels
But[8].setBackground(Color.red);
But[4].setEnabled(false);
But[0].setEnabled(false);
But[14].setEnabled(false);
But[20].setEnabled(false);
DoI = true;
if (command.equals("O")) //for buying vowels
But[14].setBackground(Color.red);
But[4].setEnabled(false);
But[8].setEnabled(false);
But[0].setEnabled(false);
But[20].setEnabled(false);
DoO = true;
if (command.equals("U")) //for buying vowels
But[20].setBackground(Color.red);
But[4].setEnabled(false);
But[8].setEnabled(false);
But[14].setEnabled(false);
But[0].setEnabled(false);
DoU = true;
if (command.equals("Buy Vowel"))
if (DoA)
But[0].setEnabled(false);
else
But[0].setEnabled(true);
if (DoE)
But[4].setEnabled(false);
else
But[4].setEnabled(true);
if (DoI)
But[8].setEnabled(false);
else
But[8].setEnabled(true);
if (DoO)
But[14].setEnabled(false);
else
But[14].setEnabled(true);
if (DoU)
But[20].setEnabled(false);
else
But[20].setEnabled(true);
But[0].setVisible(true);
But[4].setVisible(true);
But[8].setVisible(true);
But[14].setVisible(true);
But[20].setVisible(true);
if (next1)
     dat1=dat1-100;
     txtPlayer1.setText(""+dat1);
else if (next2)
     dat1=dat1-100;
     txtPlayer1.setText(""+dat1);
else
     dat2=dat2-100;
     txtPlayer2.setText(""+dat2);
if (command.equals("Guess"))
     Guess = Guess.toUpperCase();
     if (next1)
          if (Guess.equals(SecretWord))
               dat1=dat1*2;
               ButVowel.setVisible(false);
               txtPlayer1.setText(""+dat1);
               txtGuess.setText("You Right");
               lblTurn.setText("Player 1 - You Win!");
               lblWord.setText(SecretWord);
               guessB.setVisible(false);
               but1.setVisible(false);
          else
               ++ErrorCount;
     if (ErrorCount>=5)
          lblTurn.setText("Player 1 - Sorry Game Over!");
          but1.setVisible(false);
          guessB.setVisible(false);
     else
                    if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
               ER=ER+1;
               lbllive.setText("You Have "+ER+" Errors");
               lblTurn.setText("Player 1 - Try Again!");
               txtGuess.setText("Your Wrong");
     else if (next2)
          if (Guess.equals(SecretWord))
               dat1=dat1*2;
               ButVowel.setVisible(false);
               txtPlayer1.setText(""+dat1);
               txtGuess.setText("You Right");
               lblWord.setText(SecretWord);
               guessB.setVisible(false);
               but1.setVisible(false);
          else
                    if (dat2==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
               next2=false;
               lblTurn.setText("Player 2 Your Turn");
               txtGuess.setText("Your Wrong");
     else
          if (Guess.equals(SecretWord))
               dat2=dat2*2;
               ButVowel.setVisible(false);
               txtPlayer2.setText(""+dat2);
               txtGuess.setText("Your Right");
               lblWord.setText(SecretWord);
               guessB.setVisible(false);
               but1.setVisible(false);
          else
                    if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
               next2=true;
               lblTurn.setText("Player 1 Your Turn!");
               txtGuess.setText("Thats Wrong");
if(command.equals("Spin"))
eg=0;
runner = new Thread(this);
runner.start();
but1.setEnabled(false);
ButVowel.setEnabled(false);
repaint();
public void run()
rand = 12+(int) (Math.random()*50);
while (eg<rand)
try
Thread.sleep(100);
catch (InterruptedException e){}
img = getImage(getCodeBase(),"Wheel"+i+".jpg");
clip1 = getAudioClip(getCodeBase(),"rb.au");
if (i<11)
i++;
else
i=0;
eg++;
//clip1.play();
repaint();
for (int i = 0; i < 26; i++)
But[i].setVisible(true);
ImgVal();
repaint();
public void ImgVal()
if (i==1)
lblScore.setText("600");
score1 = 600;
score2 = 600;
if (i==2)
lblScore.setText("200");
score1 = 200;
score2 = 200;
if (i==3)
lblScore.setText("300");
score1 = 300;
score2 = 300;
if (i==4)
lblScore.setText("800");
score1 = 800;
score2 = 800;
if (i==5)
lblScore.setText("BANKRUPT");
score1 = 0;
score2 = 0;
but1.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
if (next1)
     ++ErrorCount;
     if (ErrorCount>=5)
          lblTurn.setText("Player 1 - Sorry GameOVer!");
          but1.setVisible(false);
          guessB.setVisible(false);
     else
          if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
dat1 = 0;
ER=ER+1;
               lbllive.setText("You Have "+ER+" Errors");
txtPlayer1.setText("" + dat1);
lblTurn.setText("Player1 - BankRupt!");
else if (next2)
          if (dat2==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = false;
dat1 = 0;
txtPlayer1.setText("" + dat1);
lblTurn.setText("Player2 Your Turn!");
else
                    if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = true;
dat2 = 0;
txtPlayer2.setText("" + dat2);
lblTurn.setText("Player1 Your Turn!");
if (i==6)
lblScore.setText("100");
score1 = 100;
score2 = 100;
if (i==7)
lblScore.setText("400");
score1 = 400;
score2 = 400;
if (i==8)
lblScore.setText("1000");
score1 = 1000;
score2 = 1000;
if (i==9)
lblScore.setText("200");
score1 = 200;
score2 = 200;
if (i==10)
lblScore.setText("300");
score1 = 300;
score2 = 300;
if (i==11)
lblScore.setText("700");
score1 = 700;
score2 = 700;
if (i==0)
lblScore.setText("400");
score1 = 400;
score2 = 400;
public void RandomiseWords()
          SecretWord=Words[(int)(Math.random()*3.0)];
lblWord.setText(SecretWord);
     public void ProcessSecretWord()
          String STR="";
          SecretWord=SecretWord.toUpperCase();
          words=SecretWord.toCharArray();
          for (int j=0;j<SecretWord.length();j++)
               STR=STR+"*";
               words[j]='*';
          lblWord.setText(STR);
     public void CheckLetter(String Sstr, char Cstr)
          String STR="";
          int index=0;
          int curr=0;
          index=SecretWord.indexOf(Sstr,curr);
          if (index != -1)
               do
                    index=SecretWord.indexOf(Sstr,curr);
                    curr=index+1;
                    if (index != -1)words[index]=Cstr;
               } while (index != -1);
               for (int j=0;j<SecretWord.length();j++)
                    STR=STR+words[j];
               lblWord.setText(STR);
if (next1)
     dat1 = dat1 + score1;
txtPlayer1.setText(""+dat1);
but1.setEnabled(true);
ButVowel.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
else if (next2)
dat1 = dat1 + score1;
txtPlayer1.setText(""+dat1);
but1.setEnabled(true);
ButVowel.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
else
dat2 = dat2 + score2;
txtPlayer2.setText(""+dat2);
but1.setEnabled(true);
Cool = true;
ButVowel.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
          else
     but1.setEnabled(true);
     for (int i = 0; i < 26; i++)
     But[i].setVisible(false);
if (next1)
     ++ErrorCount;
     if (ErrorCount>=5)
          lblTurn.setText("Player 1 - Sorry Game Over!");
          but1.setVisible(false);
          guessB.setVisible(false);
     else
     if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
ER=ER+1;
               lbllive.setText("You Have "+ER+" Errors");
lblTurn.setText("Player 1 Your Turn!");
else if (next2)
     if (dat2==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = false;
lblTurn.setText("Player 2 Your turn!");
else
          if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = true;
lblTurn.setText("Player 1 Your Turn!");

Ok i am not sure if this is in better format. I really dont have much time left.
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
     public class WheelNWord extends Applet implements ActionListener, Runnable
Image img,winBuff,imgArrow;
Button but1,P1mode,P2mode;
Button ButVowel,guessB;
Thread runner;
Graphics buff;
int xpoints[] = {157,147,137},
ypoints[] = {275,265,275};
int i=0,eg=0,rand=0,ErrorCount=0,ER=0;
int score1, score2, dat1, dat2;
boolean next1 = false, next2 = true,Cool=true, DoA,DoE,DoI,DoO,DoU;
AudioClip clip1;
TextField txtPlayer1 = new TextField(12);
TextField txtPlayer2 = new TextField(12);
TextField txtGuess = new TextField(12);
Label lblPlayer1 = new Label("Player 1");
Label lblPlayer2 = new Label("Player 2");
Label lblScore = new Label("");
Label lblTurn = new Label("Player 1 Your turn!");
Label lblCover;
Label lbllive = new Label("You are allowed 5 Errors");
char words[];
String SecretWord,str;
Button But[]=new Button[26];
Label lblWord = new Label("This Is where the Hidden Word will appear");
     String Words[]={"Joe","James","Jerry","Wendy","Eros","Brett","Kirby"};
public void init ()
     P1mode = new Button("1 PLAYER MODE");
     add(P1mode);
     P1mode.addActionListener(this);
     P1mode.setFont(new Font("Arial",Font.BOLD, 10));
     P2mode = new Button("2 PLAYER MODE");
     add(P2mode);
     P2mode.addActionListener(this);
     P2mode.setFont(new Font("Arial",Font.BOLD, 10));
     lblCover = new Label();
     add(lblCover);
winBuff = createImage(this.getSize().width,this.getSize().height);
buff = winBuff.getGraphics();
img = getImage(getCodeBase(),"Wheel0.jpg");
but1 = new Button("Spin");
guessB = new Button("Guess");
add(guessB);
guessB.addActionListener(this);
add (but1);
but1.addActionListener(this);
add(lblWord);
add(lblTurn);
add(lblScore);
add(lblPlayer1);
add(lblPlayer2);
add(lbllive);
add(txtPlayer1);
add(txtPlayer2);
add(txtGuess);
ButVowel = new Button("Buy Vowel");
add (ButVowel);
ButVowel.addActionListener(this);
ButVowel.setEnabled(false);
lbllive.setFont(new Font("Arial",Font.BOLD, 15));
lbllive.setSize(200,20);
for (int i = 0; i < 26; i++)
But=new Button(""+ (char)(65+i));
add(But[i]);
But[i].addActionListener(this);
But[i].setVisible(false);
But[0].setBackground(Color.cyan);
But[0].setEnabled(false);
But[4].setBackground(Color.cyan);
But[4].setEnabled(false);
But[8].setBackground(Color.cyan);
But[8].setEnabled(false);
But[14].setBackground(Color.cyan);
But[14].setEnabled(false);
But[20].setBackground(Color.cyan);
But[20].setEnabled(false);
RandomiseWords();
ProcessSecretWord();
public void paint (Graphics g)
     lblCover.setSize(600,500);
lblCover.setLocation(0,0);
but1.setLocation(150,320);
buff.setColor(this.getBackground());
buff.fillRect(0,0,this.getSize().width,this.getSize().height);
buff.setColor(Color.black);
buff.drawImage(img,25,25,this);
buff.drawImage(imgArrow,320,170,this);
g.drawImage(winBuff,25,25,this);
g.fillPolygon(xpoints,ypoints,3);
lblScore.setSize(100,20);
lblScore.setLocation(120,10);
lblScore.setFont(new Font("Arial",Font.BOLD, 20));
lblWord.setSize(150,20);
lblWord.setLocation(120,365);
lblPlayer1.setSize(100,20);
lblPlayer1.setLocation(300,10);
lblPlayer2.setSize(100,20);
lblPlayer2.setLocation(300,50);
txtPlayer1.setSize(100,20);
txtPlayer1.setLocation(450,450);
txtPlayer2.setSize(100,20);
txtPlayer2.setLocation(450,475);
txtGuess.setLocation(450,230);
lblTurn.setSize(150,20);
lblTurn.setLocation(400,150);
lblTurn.setFont(new Font("Arial",Font.BOLD, 15));
lbllive.setLocation(340,100);
ButVowel.setLocation(500,50);
P1mode.setLocation(100,200);
P1mode.setSize(200,50);
P2mode.setLocation(300,200);
P2mode.setSize(200,50);
guessB.setLocation(500,200);
for (int i = 0; i < 26; i++)But[i].setSize(20,20);
          for (int i = 0; i < 13; i++)
But[i].setLocation(i*21+20,400);
But[i+13].setLocation(i*21+20,430);
public final void update(Graphics g)
paint(g);
public void actionPerformed(ActionEvent evt)
String command,Guess;
Guess = txtGuess.getText();
     command=evt.getActionCommand();
for (int i = 0; i < 26; i++)
               if (command.equals(""+(char)(65+i)))
But[i].setEnabled(false);
CheckLetter(""+(char)(65+i),(char)(65+i));
          if (command.equals("1 PLAYER MODE"))
               lblCover.setVisible(false);
               P1mode.setVisible(false);
               P2mode.setVisible(false);
               txtPlayer2.setVisible(false);
               lblPlayer2.setVisible(false);
               next1 = true;
          if (command.equals("2 PLAYER MODE"))
               lblCover.setVisible(false);
               P1mode.setVisible(false);
               P2mode.setVisible(false);
               lbllive.setVisible(false);
if (command.equals("A")) //for buying vowels
But[0].setBackground(Color.red);
But[4].setEnabled(false);
But[8].setEnabled(false);
But[14].setEnabled(false);
But[20].setEnabled(false);
DoA = true;
if (command.equals("E"))
But[4].setBackground(Color.red);
But[0].setEnabled(false);
But[8].setEnabled(false);
But[14].setEnabled(false);
But[20].setEnabled(false);
DoE = true;
if (command.equals("I")) //for buying vowels
But[8].setBackground(Color.red);
But[4].setEnabled(false);
But[0].setEnabled(false);
But[14].setEnabled(false);
But[20].setEnabled(false);
DoI = true;
if (command.equals("O")) //for buying vowels
But[14].setBackground(Color.red);
But[4].setEnabled(false);
But[8].setEnabled(false);
But[0].setEnabled(false);
But[20].setEnabled(false);
DoO = true;
if (command.equals("U")) //for buying vowels
But[20].setBackground(Color.red);
But[4].setEnabled(false);
But[8].setEnabled(false);
But[14].setEnabled(false);
But[0].setEnabled(false);
DoU = true;
if (command.equals("Buy Vowel"))
if (DoA)
But[0].setEnabled(false);
else
But[0].setEnabled(true);
if (DoE)
But[4].setEnabled(false);
else
But[4].setEnabled(true);
if (DoI)
But[8].setEnabled(false);
else
But[8].setEnabled(true);
if (DoO)
But[14].setEnabled(false);
else
But[14].setEnabled(true);
if (DoU)
But[20].setEnabled(false);
else
But[20].setEnabled(true);
But[0].setVisible(true);
But[4].setVisible(true);
But[8].setVisible(true);
But[14].setVisible(true);
But[20].setVisible(true);
if (next1)
     dat1=dat1-100;
     txtPlayer1.setText(""+dat1);
else if (next2)
     dat1=dat1-100;
     txtPlayer1.setText(""+dat1);
else
     dat2=dat2-100;
     txtPlayer2.setText(""+dat2);
if (command.equals("Guess"))
     Guess = Guess.toUpperCase();
     if (next1)
          if (Guess.equals(SecretWord))
               dat1=dat1*2;
               ButVowel.setVisible(false);
               txtPlayer1.setText(""+dat1);
               txtGuess.setText("You Right");
               lblTurn.setText("Player 1 - You Win!");
               lblWord.setText(SecretWord);
               guessB.setVisible(false);
               but1.setVisible(false);
          else
               ++ErrorCount;
     if (ErrorCount>=5)
          lblTurn.setText("Player 1 - Sorry Game Over!");
          but1.setVisible(false);
          guessB.setVisible(false);
     else
                    if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
               ER=ER+1;
               lbllive.setText("You Have "+ER+" Errors");
               lblTurn.setText("Player 1 - Try Again!");
               txtGuess.setText("Your Wrong");
     else if (next2)
          if (Guess.equals(SecretWord))
               dat1=dat1*2;
               ButVowel.setVisible(false);
               txtPlayer1.setText(""+dat1);
               txtGuess.setText("You Right");
               lblWord.setText(SecretWord);
               guessB.setVisible(false);
               but1.setVisible(false);
          else
                    if (dat2==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
               next2=false;
               lblTurn.setText("Player 2 Your Turn");
               txtGuess.setText("Your Wrong");
     else
          if (Guess.equals(SecretWord))
               dat2=dat2*2;
               ButVowel.setVisible(false);
               txtPlayer2.setText(""+dat2);
               txtGuess.setText("Your Right");
               lblWord.setText(SecretWord);
               guessB.setVisible(false);
               but1.setVisible(false);
          else
                    if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
               next2=true;
               lblTurn.setText("Player 1 Your Turn!");
               txtGuess.setText("Thats Wrong");
if(command.equals("Spin"))
eg=0;
runner = new Thread(this);
runner.start();
but1.setEnabled(false);
ButVowel.setEnabled(false);
repaint();
public void run()
rand = 12+(int) (Math.random()*50);
while (eg<rand)
try
Thread.sleep(100);
catch (InterruptedException e){}
img = getImage(getCodeBase(),"Wheel"+i+".jpg");
clip1 = getAudioClip(getCodeBase(),"rb.au");
if (i<11)
i++;
else
i=0;
eg++;
//clip1.play();
repaint();
for (int i = 0; i < 26; i++)
But[i].setVisible(true);
ImgVal();
repaint();
public void ImgVal()
if (i==1)
lblScore.setText("600");
score1 = 600;
score2 = 600;
if (i==2)
lblScore.setText("200");
score1 = 200;
score2 = 200;
if (i==3)
lblScore.setText("300");
score1 = 300;
score2 = 300;
if (i==4)
lblScore.setText("800");
score1 = 800;
score2 = 800;
if (i==5)
lblScore.setText("BANKRUPT");
score1 = 0;
score2 = 0;
but1.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
if (next1)
     ++ErrorCount;
     if (ErrorCount>=5)
          lblTurn.setText("Player 1 - Sorry GameOVer!");
          but1.setVisible(false);
          guessB.setVisible(false);
     else
          if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
dat1 = 0;
ER=ER+1;
               lbllive.setText("You Have "+ER+" Errors");
txtPlayer1.setText("" + dat1);
lblTurn.setText("Player1 - BankRupt!");
else if (next2)
          if (dat2==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = false;
dat1 = 0;
txtPlayer1.setText("" + dat1);
lblTurn.setText("Player2 Your Turn!");
else
                    if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = true;
dat2 = 0;
txtPlayer2.setText("" + dat2);
lblTurn.setText("Player1 Your Turn!");
if (i==6)
lblScore.setText("100");
score1 = 100;
score2 = 100;
if (i==7)
lblScore.setText("400");
score1 = 400;
score2 = 400;
if (i==8)
lblScore.setText("1000");
score1 = 1000;
score2 = 1000;
if (i==9)
lblScore.setText("200");
score1 = 200;
score2 = 200;
if (i==10)
lblScore.setText("300");
score1 = 300;
score2 = 300;
if (i==11)
lblScore.setText("700");
score1 = 700;
score2 = 700;
if (i==0)
lblScore.setText("400");
score1 = 400;
score2 = 400;
public void RandomiseWords()
          SecretWord=Words[(int)(Math.random()*3.0)];
lblWord.setText(SecretWord);
     public void ProcessSecretWord()
          String STR="";
          SecretWord=SecretWord.toUpperCase();
          words=SecretWord.toCharArray();
          for (int j=0;j<SecretWord.length();j++)
               STR=STR+"*";
               words[j]='*';
          lblWord.setText(STR);
     public void CheckLetter(String Sstr, char Cstr)
          String STR="";
          int index=0;
          int curr=0;
          index=SecretWord.indexOf(Sstr,curr);
          if (index != -1)
               do
                    index=SecretWord.indexOf(Sstr,curr);
                    curr=index+1;
                    if (index != -1)words[index]=Cstr;
               } while (index != -1);
               for (int j=0;j<SecretWord.length();j++)
                    STR=STR+words[j];
               lblWord.setText(STR);
if (next1)
     dat1 = dat1 + score1;
txtPlayer1.setText(""+dat1);
but1.setEnabled(true);
ButVowel.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
else if (next2)
dat1 = dat1 + score1;
txtPlayer1.setText(""+dat1);
but1.setEnabled(true);
ButVowel.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
else
dat2 = dat2 + score2;
txtPlayer2.setText(""+dat2);
but1.setEnabled(true);
Cool = true;
ButVowel.setEnabled(true);
for (int i = 0; i < 26; i++)
But[i].setVisible(false);
          else
     but1.setEnabled(true);
     for (int i = 0; i < 26; i++)
     But[i].setVisible(false);
if (next1)
     ++ErrorCount;
     if (ErrorCount>=5)
          lblTurn.setText("Player 1 - Sorry Game Over!");
          but1.setVisible(false);
          guessB.setVisible(false);
     else
     if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
ER=ER+1;
               lbllive.setText("You Have "+ER+" Errors");
lblTurn.setText("Player 1 Your Turn!");
else if (next2)
     if (dat2==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = false;
lblTurn.setText("Player 2 Your turn!");
else
          if (dat1==0)
          ButVowel.setEnabled(false);
     else
          ButVowel.setEnabled(true);
next2 = true;
lblTurn.setText("Player 1 Your Turn!");

Similar Messages

  • Hi, I'm unable to use my speaker when I'm using Mac OS. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.

    Hi, I'm unable to use my speaker when I'm using Mac OS, which means I'm unable to unmute, decrease or increase the volume. However, I'm able to do so for Windows 7 OS on Bootcamp. Can anyone please advise on how to rectify this problem? I would greatly appreciate your help, thank you.

    Hi Zac, sorry to hear about your troubles, but that's why us other users are here to try to help in these instances.
    Open Console in Utilities & see if there are any clues or repeating messages when this connection drop happens.

  • My computer keeps saying that itunes is not working so i updated my windows and reinstalled itunes but it still doesnt work what do i do?

    my computer keeps saying that itunes is not working so i updated my windows and reinstalled itunes but it still doesnt work what do i do?

    This link will give service options for your Country ,select from drop down menu
    http://support.apple.com/kb/index?page=servicefaq&geo=United_Kingdom&product=iph one
    To troubleshhoot restore see document below
    http://support.apple.com/kb/HT1808

  • After downloading the new lion os x 10.7.2 with cloud and lion recovery update my internet doesnt work. I have tried 2 different networks that work for other people but not me. help?

    After downloading the new lion os x 10.7.2 with cloud and lion recovery update my internet doesnt work. I have tried 2 different networks that work for other people but not me. help?

    Logic's preference files may have become corrupted:
    1. Quit Logic Pro
    2. In the Finder, press and hold down the "option" key then select "Library" from the "Go" menu
    3. Open the "Preferences" folder
    4. Drag the following files to the Trash:
        - com.apple.logic.pro.cs
        - com.apple.logic.pro.LSSharedFileList.plist
        - com.apple.logic.pro.LSSharedFileList.plist.lockfile
        - com.apple.logic.pro.plist
        - com.apple.logic.pro.plist.lockfile
    These files will be re-created when Logic is next opened.

  • When I try to update creative cloud I get a popup to login, I enter my Adobe password but it doesnt work. I reset my password and tried again but it still doesnt work.

    When I try to update creative cloud I get a popup to login, I enter my Adobe password but it doesnt work. I reset my password and tried again but it still doesnt work.

    Hi,
    Thank you for getting back to me. I was able to locate the opm.db file and delete it. (as instructed below) I go to applications>Adobe Creative Cloud and double click. It prompts me to login, it logs in and says there is an update, I click update and it prompts me to sign in with my password, I enter the same password and it doesn't take it. Also, the opm.db file is back in the OOBE folder. Im I launching Creative Cloud incorrectly?
    Close the Creative Cloud Desktop application.
    Navigate to the OOBE folder.
    Windows: :\Users\[user name]\AppData\Local\Adobe\OOBE
    Mac OS: /Users/[user name]/Library/Application Support/Adobe/OOBE
    Delete the opm.db file.
    Launch Creative Cloud. Try signing in.

  • HT201401 I just updated to new OIS update and now my I phone 4s doesnt work anymore...I can't turn it on why?

    I just updated to new OIS update and now my I phone 4s doesnt work anymore...I can't turn it on why?

    How are you trying to accomplish these two tasks?
    The correct way is as follows:
    Camera zoom: pinch with your fingers like you do when viewing pictures.
    Camera button in lock screen: Double-tap on the home button while in lock screen
    If you are already doing it that way and it doesn't work, then maybe someone else here has another idea.

  • How can i change the message centre no. On my iphone?? And to help u guys "50057672" trick doesnt work and shows an Unknown Error. Please help!!!

    This doesnt work on my phone
    "To check the currect msg centre no. type
    #50057672# then press calling btn.
    To set a new MSG centre number:
    1. Call to your service provider and get the msgcentrenumber.
    2. Type 5005*7672msgcentrenumber# press calling btn.
    3. rember the # sign after your new msg centre no."
    Help me changing or atleast checking my msg centre number.
    My phone is not sending messages.

    Read the manual.
    The basics are restart, reset, restore.
    iPhone User Guide (For iOS 4.2 and 4.3 Software)

  • My song sin iTunes are showed like are part of different albums and often "part of a compilation" doesnt work.

    Because of this I have 3-4 albums from the same original album , and everything is wrote exactly the same, I tried part of a compilation and sometimes does workd but mostly doesnt , will this ever e fixed ?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • What if my ipod touch says disable please connect to itunes but when i do it doesnt work?

    Well some one changed my ipod password and now its completely disabled.. everytime i put it to itunes like its says.. its doesnt work -___- please helpp!!

    Connect iPod touch into computer. Put the device in DFU Mode.
    Restore iPod touch in iTunes after put in DFU Mode.

  • Macbook and T220HD (22 display). 1680x1050 doesnt work anymore !

    Hi! I have a macbook with a 22 inches external display (samsung t220hd). It was working fine for 9 months but i have a problem now... Last week i get my adapter (minidvi to vga) to other display to see a movie... but when i plugged it again at home... it doesnt worked fine.
    The macbook doesnt detect the screen like "syncmaster", now it says "Screen" and i cant choose the optimal mode in resolution menu (1680x1050). I fully erased the hd and reinstalled OSX and nothing...
    I have the minidvi to dvi too, but it doesnt work in the dvi port or the hdmi port.
    Can someone help me?
    Thanks a lot !

    Maybe. Could be the heads bouncing against the platters - could be the optical drive. Best to take your machine to your local Apple Store and have them diagnose the problem. They can tell you if your data is salvageable.
    In the future - make certain that you have one, if not more, backups - https://discussions.apple.com/docs/DOC-3045.
    Clinton

  • My wifi doesnt work l am using 4s and 6.0.1, my wifi doesnt work l am using 4s and 6.0.1

    my wifi doesnt work sınce l updated my 4s to ıos 6 how can l repaır ıt and do you know anythıng about 6.0.2 for 4s ???

    my wifi doesnt work sınce l updated my 4s to ıos 6 how can l repaır ıt and do you know anythıng about 6.0.2 for 4s ???

  • I HAVE A MACBOOK AIR AND THE CLICK OF THE TRACKPAD DOESNT WORK

    I HAVE A MACBOOK AIR, AND THE SECONDARY CLICK OF THE TRACKPAD DOESNT WORK. WHAT CAN I DO?

    Have you checked your Trackpad System Preference pane to make sure it's enabled?

  • Ive up grade the firefox and now is very slowly, it doesnt work very well. How can i download ther older one?

    ive upgrade the firefox and now doesnt work very good. how can i use the older one version? Thanks

    Firefox doesn't work very well in what sense ?? Can you explain a bit more about the problems you are facing in using Firefox ??
    Might not be related to your problem but some of your Plugins are out-dated
    * Update All your Firefox Plugins -> [https://www.mozilla.org/en-US/plugincheck/]
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''

  • Have updated ios 7.1.1 on iphone 4 just after installation phone is showing nothing except a symbol of istunes and and charger slot. please help me to get this resolve and help me to get my phone working. thanks in anticipation. Regards// Absar

    waiting for the response from experts

    There are no experts or Apple in these forums, just users like yourself.
    What happens when you plug your phone to itunes?
    http://support.apple.com/kb/HT1808

  • Paid $60 - for a phone number rather than a subscription? Please chime in and help a newbie

    Hi, first a quick rant: I'm an EXTREMELY frustrated new user. I have spent the last hour trying to figure out what I just purchased and what I can do to get an explaination, but whoever created this website did so without a new user in mind. Quickly: I need help trying to determine what I just purchased and what to do from here. As Quickly as I can explain what's going on: My friend in Croatia told me he spent $60 for unlimited calling. He can apparently call anywhere to phones - as we made several calls to landlines in both the states and england from his computer. We've since left his place. As I'm traveling to many countries, I figured this was a great idea, I'll pay up front instead of purchasing credits. I whipped out my credit card and paid $60 after chosing a number. After about an hour, the transaction cleared on my account with a renewal in 12 months. I went to make a call and it said I didn't have enough credit. After trying to figure out what happened all I can determine is that I might have paid for the use of a phone number for 12 months and not a subscription. Now of course after trying for several hours trying to find out how to contact Microsoft or Skype - or Whatever help center - for the past hour and finding they deflect all help to their help pages that comes nowhere NEAR helping me or explaining what has happened - and if I made a mistake how to correct it. I apparently need to spend more money for a premium account to get actual advice or any kind of resolution. Any company that takes money and expects a new user just to GET it, without providing some human interaction is a horrid company. So I paid for something I didn't want and can't use. I THINK. But I can't request a refund or help because I haven't paid for a premium account. Can anyone shed some light on this? Thanks so much; I realize you're probably just a user of the service like myself.

    Skype Rip Off people on Renewal $30 Number $30 Calling Plan Why Skype and Microsoft Sucks: My Subscription Order No.[removed for privacy] paid and delivery but not working I would like to know why the subscription I bought is not available I can make phone calls please fix the problem Skype is not a solution but a big problem since microsoft took over very disappointing
    Yes they told me I will have to pay $30 for my number and $30 for my 12 months subscription now they said they did not they are liarsMy subscription is not working neither after several months tried to fix the problem no one from skype neither from Microsoft tried to contact me is very painful to paid skype for a phone services and they just do nothing but laughing in your face Skype and Microsoft let me tell you something in your face you both sucks big time you are nightmare what a pityI would love to sue skype since they are not providing with the service I contract with then my business is suffering for negligence in delivery my subscription that I bought but is not working long time ago I will follow a class action against skype please keep updatedPORT A SKYPE NUMBER http://community.skype.com/t5/Skype-Number/Port-Skype-Online-Number-to-another-provider/td-p/1529827https://consumercomplaints.fcc.gov/hc/en-us/articles/[removed for privacy]-Keeping-Your-Telephone-Number-When-Changing-Service-ProvidersWhen all is said and done Skype is a phone service provider and as such they must allow your number to move. It is required under Section 212 of the Small Business Regulatory Enforcement Fairness Act of 1996. The SBREFA '96 required portability in the largest 100 Metropolitan statistical areas. Then in 2003, the requirement was expanded to ALL carriers regardless of geographical location.
    In order for a number to be ported, roughly speaking you must live in the area code's geography. So, you can't port a New York number to Iowa.
    If you have a problem porting your phone number from one service provider to another, first try to resolve it with the service provider. If you cannot resolve the problem directly, you can file a complaint with the FCC. There is no charge for filing a complaint. You can file your complaint using an FCC online complaint form. You can also file your complaint with the FCC’s Consumer Center by calling 1-888-CALL-FCC (1-888-225-5322) or 1-888-TELL-FCC (1-888-835-5322) for TTY; faxing 1-866-418-0232; or writing to the Federal Communications Commission at:
    Federal Communications Commission
    Consumer and Governmental Affairs Bureau
    Consumer Inquiries and Complaints Division
    445 12th Street, SW
    Washington, DC 20554

Maybe you are looking for

  • How can I watch a downloaded movie on my TV from my Ipad ?

    I downloaded a movie from iTunes and would like to watch it on my TV. How do I do this ?

  • Why is using Photoshop CS6 as the touchup image editor for Acrobat still a complete failure?

    Image objects in pdfs are losing their positional and other parameters when saved after editing with Photoshop CS6(ONLY).  The problem was acknowledged on the Photoshop forum three months ago, but they said it was up to the Acrobat folks to fix it. 

  • Error in registering the datasource

    When I try to register a Global Datasource, I get "file does not have read permission". OS - Windows 2000 Database - Oracle81 AS - iPlanet6.0 SP3 Let me know where I am wrong. c:\> iasdeploy regdatasource -verbose elms-ias-ora-type2 "======Begin erro

  • Camera on Nokia E6

    Hi All! Does anyone know how to turn off the camera tone on Nokia E6 cause after updating to Nokia Belle i don't know how to do it. Thank you in advance!

  • How to make a slowly apearing line

    Hi there guys,      Im having a problem with making 1 animation. I want to make a slowly appearing line. The scene is a pencil drawing a line.. so as the pen end moves a line is slowly appearing, i couldnt get the tecnique on doin this, can anyone gi