title: Change Boolean from a String to a checkbox (JTable)
body: <p>I am having a small problem of showing results from my database to a JTable. It displays all of the data correctly, but at the moment it is showing "true" or "false" for boolean. </p>
  
  <p>I know it must be because I am using <code>getString</code>, but does anyone know what to use in order to change it to a checkbox instead?</p>
  
  <p>Current JTable:</p>
  
  <p><a href="https://i.stack.imgur.com/KD25h.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KD25h.png" alt="enter image description here"></a></p>
  
  <p>My Database:</p>
  
  <p><a href="https://i.stack.imgur.com/6je0P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6je0P.png" alt="enter image description here"></a></p>
  
  <p>Code:</p>
  
  <pre><code>connection con=new connection();
  Connection getcon=null;
  Vector col = new Vector();
  Vector dat= new Vector();
  ResultSet rs = null;
  try{
      getcon = con.creatConnection();
      col.add("Fanta");
      col.add("Crisps");
      col.add("Beer");
      col.add("Wine");// create income table default colum names and sore it
      col.add("Water");
      col.add("Seat Row");
      col.add("Seat");
      col.add("Total Cost");  
      rs=getcon.createStatement().executeQuery("select*from orders"); //getting all the information from the table
  
      dat.clear();
  
      while(rs.next()){// if record source avilable
  
          Vector v =new Vector();
          v.add(rs.getString("Fanta").trim());
          v.add(rs.getString("Crisps").trim());
          v.add(rs.getString("Beer").trim());
          v.add(rs.getString("Wine").trim());// getting income values from database and store in dat
          v.add(rs.getString("Water").trim());
          v.add(rs.getString("SeatRow").trim());
          v.add(rs.getString("Seat").trim());
          v.add(rs.getString("TotalCost").trim());
  
          dat.add(v);
      }
      orderResults.setModel(new DefaultTableModel(dat, col));
  }
  catch(Exception ex){
      JOptionPane.showMessageDialog(null, ex.getMessage());
  }
  </code></pre>