Modified test jFrame.

Download and run. See what happens when you select the different boxes!