Thanks; just saw this as I've been away & also unwell. I'll work on it
Type: Posts; User: hairLess
Thanks; just saw this as I've been away & also unwell. I'll work on it
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...
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...
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.
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...
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...
I'm starting out in Java
I produced the following class to test switch and conditional operators:
import java.util.Scanner;
public class TestingSwitchThenConditionals {
Thanks, it works & I understand it too !
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...
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...