You have 168 move vertical pixels.
Type: Posts; User: Norm
You have 168 move vertical pixels.
Screen 1024 x 600
The layout does not work for me. The empty buttons are only partially shown.
The spin and solve buttons are missing.
The answer text field is not shown
The posted code has lost its...
That is not the way to control a loop. You should use the array's .length attribute, It tells anyone reading the code what is happening and allow the size of the array to be changed without...
What about these "magic numbers"?
for (i = 0 ; i < 8 ; i++)
buttons [5].setVisible (false);
String word = phrase [0];
int a = (int) (Math.random () * 5 + 1);
They should all be replaced...
"a" is a poor name for a variable. Variable names should say what value they contain.
Doesn't the word have to be determined before the blank buttons are displayed so you know how many buttons to...
Please explain. Somewhere the code needs randomly chose an index to the phrase array and use that vs the index of 0.
The code has several "magic numbers" coded in it. Its best not to hard code...
The index to the phrase array is hardcoded as 0. If you want different Strings from the array you need to use a variable whose value can be changed.
What is the name of the label you are trying...
The String class has a method that returns its length. Use that in a loop to create one button for each character in the String.
Please edit your post and wrap your code with
<YOUR CODE...
Do you have any specific questions about your assignment?
Please post your code and any questions about problems you are having.