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...
  7. Logical operators don't seem to work in a very basic class

    I'm starting out in Java

    I produced the following class to test switch and conditional operators:


    import java.util.Scanner;


    public class TestingSwitchThenConditionals {
  8. Replies
    13
    Views
    1,563

    Re: Why doesnt my constructor work?

    Thanks, it works & I understand it too !
  9. Replies
    13
    Views
    1,563

    Re: Why doesnt my constructor work?

    Thank you for your reply. I moved the Color declarations to the paint component method and it did work !

    Unfortunately (for me) I don't understand why. I did want set the value of the...
  10. Replies
    13
    Views
    1,563

    Why doesnt my constructor work?

    Hi

    I'm new to Java & am working through the Dietels' "Java How to Program" and am stuck on exercise 6.1 (I'm not doing a formal course)
    I managed to get the bulls eye required but I can't seem...
Results 1 to 10 of 10