Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: How to update a JLabel in a basic Graphics exercise

    Add a listener for a component for its being resized. In the listener's method call the method you want called.


    Add a println() statement to print out a message so you will know when a method...
  2. Re: How to update a JLabel in a basic Graphics exercise

    Is that method called AFTER the counts have been assigned values?
    To see what the code sets the text to, print out what the method returns. Add this statement right after the above posted code:
    ...
  3. Re: How to update a JLabel in a basic Graphics exercise

    yes. The code needs to be changed to get rid of all the static items (except the main() method)

    That method builds a String but does NOT do anything to show that String in the GUI.

    After the...
  4. Re: How to update a JLabel in a basic Graphics exercise

    Commented out missing class references.

    Where does the code set the text to be shown in the GUI after the counts have been set?

    BTW The count variables should not be static. Use the reference...
Results 1 to 4 of 4