title: How to add a JPanel button for boolean values?
body: <p>I am new to swing,
  I have a method which returns values in true or false (boolean) format. 
  I need to display a flag using <code>JPanel</code> which displays true or false values.</p>
  
  <p>How can I do this?</p>