Search:

Type: Posts; User: jollex5

Search: Search took 0.08 seconds.

  1. Re: Can't get JLabel to change text while program is running.

    I figured it out, the for loop in my randomInt() method was loading the numbers array with the integers from 0-270 every time I called the randomInt() method, so I moved it out into it's own method...
  2. Re: Can't get JLabel to change text while program is running.

    It has it's own method that creates a random number generator using the java.util.Random class and then uses the nextInt() method to get the next random integer.

    Here's the method from my code:
    ...
  3. Re: Can't get JLabel to change text while program is running.

    Thanks for the advice, by placing some more println statements around, I figured out that it the problem isn't that the JLabel isn't updating, but I think the issue is with the randomInt() method...
  4. Can't get JLabel to change text while program is running.

    I'm writing a program that lists a word taken randomly from an array of words and has a text field next to it. When the user types something in the text field and presses enter, it should perform an...
Results 1 to 4 of 4