Forums Register Login

Still stuck-taking different approach plz help

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Well, at first sight... you class is named ColorButtons2 but your constructor says ColorButtons.

Fix that and it should compile and run.
+Pie Number of slices to send: Send
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);
+Pie Number of slices to send: Send
I fixed and got it to compile but it is a blank white frame. The buttons are not there.
+Pie Number of slices to send: Send
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


reply
reply
This thread has been viewed 687 times.
Similar Threads
Converting a Combobox to Radio Buttons
Stuck on checkboxes -pleeeeze help
ItemListener
problem with updating Panel!
simon game
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:54:01.