I'm trying
java's swing for the first time with a problem from "Art and Science of Java" with a little program that allows users to fill the canvas with stars upon mouse clicking. I'm trying to make a JCheckBox on the SOUTH border that allows the user to toggle between filled and unfilled stars. The button works properly except that the check mark doesn't toggle when clicked. Otherwise it actually will toggle the stars to be filled or not. Can someone please show me my mistake? Thanks in advance.