title: Getting checkbox values on clicking the button in swings
body: <p>I need a small code in java for the following scenario:</p>
  
  <blockquote>
    <p>Button should get the selected checkboxes and executing the code for
    those checkboxes in my form.</p>
  </blockquote>