3 Replies Latest reply: Mar 15, 2013 1:34 AM by Dinud123 RSS

    Checkbox dosnt get shown up in jtable..

    Dinud123
      I am accepting values from the server through sockets in the form of message.
      The message is split and shown in the jtable like this :
           
      String[] parts = message.split("\t");
                                    data = new Object[parts.length / 2][3];
                                    for (i = 0, r = 0; r < data.length; r++)
                                    {
                                         data[r][0] = parts[i++];
                                         data[r][1] = new Float(parts[i++]) ;
                                         data[r][2] = new Boolean(true) ; //dosn't show as checkbox but shows as "true"
                                    }

                                    Object col[] = {"Sensor","Values","checkbox"};

      I have problem with checkboxes not displaying ( see comments)