Kendra Payne
,
Greenhorn
I have completely changed my code and am still getting errors and have no idea whatsoever what is wrong. Please help if you can.
Thanks in advance.
Edwin Dalorzo
,
Ranch Hand
Well, at first sight... you class is named ColorButtons2 but your constructor says ColorButtons.
Fix that and it should compile and run.
Michael Dunn
,
Ranch Hand
because of this
Checkbox blue, red, yellow, pink, gray;
all of these
Checkbox blue = new Checkbox("Blue",false,colorGroup);
should be just
blue = new Checkbox("Blue",false,colorGroup);
Kendra Payne
,
Greenhorn
I fixed and got it to compile but it is a blank white frame. The buttons are not there.
Michael Dunn
,
Ranch Hand
if you changed the constructor to ColorButtons2, did you also change this in main()
ColorButtons cb = new ColorButtons();
if not, you might be working with an old compiled class
mooooooo ..... tiny ad ....
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com