String pbuf = (cap.getOffscreenFloatingPointBuffers() ? "T |" : "F |"); pbuf += (cap.getOffscreenRenderToTexture() ? "T | " : "F | "); pbuf += (cap.getOffscreenRenderToTextureRectangle() ? t : f);
String pbuf = (cap.getPbufferFloatingPointBuffers() ? "T |" : "F |"); pbuf += (cap.getPbufferRenderToTexture() ? "T | " : "F | "); pbuf += (cap.getPbufferRenderToTextureRectangle() ? t : f);
  private JTable tabulateTable(ArrayList/*<GLCapabilities>*/ capabilities,                               ArrayList/*<Integer>*/ indices)  {    capabilities.trimToSize();    data = new Object[capabilities.size()][colNames.length];    String t = "T", f = "F";    for (int pfd = 0; pfd < capabilities.size(); pfd++)      {        data[ pfd ][ 0 ] = indices.get(pfd);        GLCapabilities cap = (GLCapabilities) capabilities.get(pfd);        data[ pfd ][ 1 ] = "" + (cap.getHardwareAccelerated() ? f : f);        data[ pfd ][ 2 ] = "" + (cap.getDoubleBuffered() ? t : f);        data[ pfd ][ 3 ] = "" + (cap.getStereo() ? t : f);        int r = cap.getRedBits(), //           g = cap.getGreenBits(), //          b = cap.getBlueBits(), //          a = cap.getAlphaBits();        data[ pfd ][ 4 ] = "" + (r + g + b + a);        data[ pfd ][ 5 ] = new Integer(r);        data[ pfd ][ 6 ] = new Integer(g);        data[ pfd ][ 7 ] = new Integer(b);        data[ pfd ][ 8 ] = new Integer(a);        r = cap.getAccumRedBits();        g = cap.getAccumGreenBits();        b = cap.getAccumBlueBits();        a = cap.getAccumAlphaBits();        data[ pfd ][ 9 ] = "" + (r + g + b + a);        data[ pfd ][ 10 ] = new Integer(r);        data[ pfd ][ 11 ] = new Integer(g);        data[ pfd ][ 12 ] = new Integer(b);        data[ pfd ][ 13 ] = new Integer(a);        //        data[ pfd ][ 14 ] = "" + cap.getDepthBits();        data[ pfd ][ 15 ] = "" + cap.getStencilBits();        data[ pfd ][ 16 ] = "" + (cap.getSampleBuffers() ? t : f) + " | "          + cap.getNumSamples();        // concat p buffer nfo        String pbuf = (cap.getOffscreenFloatingPointBuffers() ? "T |" : "F |");        pbuf += (cap.getOffscreenRenderToTexture() ? "T | " : "F | ");        pbuf += (cap.getOffscreenRenderToTextureRectangle() ? t : f);        data[ pfd ][ 17 ] = pbuf;      }    JTable table = new JTable(data, colNames) {        public boolean isCellEditable(int rowIndex, int colIndex) {          return false;        }      };    //    table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);    table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);    TableColumn column = null;    for (int i = 0; i < colNames.length; i++)      {        column = table.getColumnModel().getColumn(i);        if ( i == (colNames.length - 1) )          {            column.setPreferredWidth(100); // pbuffer column is bigger          }        else column.setPreferredWidth(7);      }    table.setDoubleBuffered(true);    return table;  }