The tool gives false positives at lines 201 and 208. At line 201 it says "You have manually set a layout manager to the container [swingTutorials.CheckBoxDemo:201] but did not add any widget to it. If you are not adding any widget to the container then you do not need to manually set a layout". However, widgets are added to this container at lines 127,128. Similarly, at line 208 it states "You have created a GUI widget at [swingTutorials.CheckBoxDemo: 201] that is not assigned to any top-level GUI widget and is redundant in your source code. However, it's added to the frame at line 203.
Anonymous