Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    You have 168 move vertical pixels.
  2. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    Screen 1024 x 600
  3. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    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...
  4. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    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...
  5. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Wheel Of fortune

    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...
  6. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    "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...
  7. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    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...
  8. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    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...
  9. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Wheel Of fortune

    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...
  10. Thread: Assignment

    by Norm
    Replies
    19
    Views
    2,935

    Re: Assignment

    Do you have any specific questions about your assignment?
    Please post your code and any questions about problems you are having.
Results 1 to 10 of 10