Search:

Type: Posts; User: hairLess

Search: Search took 0.07 seconds.

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

    Thanks; just saw this as I've been away & also unwell. I'll work on it
  2. Re: How to update a JLabel in a basic Graphics exercise

    Thanks again

    That helped identify the issue: each time I re-size the window I wanted the JLabel to update with the number of each shape eg 2,4,2
    This does happen in the console.
    But it doesn't...
  3. Re: How to update a JLabel in a basic Graphics exercise

    Thanks again

    That helped identify the issue: each time I re-size the window I wanted the JLabel to update with the number of each shape eg 2,4,2
    This does happen in the console.
    But it doesn't...
  4. Re: How to update a JLabel in a basic Graphics exercise

    Thanks again I'll work on the non-static variables.

    I thought the code for the label was set up with

    southLabel.setText(whatToSay() );

    in classs TestDraw.
  5. Re: How to update a JLabel in a basic Graphics exercise

    Thank you for your reply

    The commented out class references should have been deleted as they aren't used.

    The code to set the text shown in the GUI is in the whatToSay() method in the TestDraw...
  6. How to update a JLabel in a basic Graphics exercise

    Hi

    I'm having problem with a basic Graphics exercise from Deitel & Deitel's book.

    The task consists of
    1. generate 1 of 3 shapes in a window - line, oval and rectangle - I have set the total...
Results 1 to 6 of 6