DefaultTableModel.setColumnCount() method does not work

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.6



      Name: aaC67449 Date: 10/05/99


      DefaultTableModel.setColumnCount() method does not set the number of column




      See example:
      ------------------------- example ----------------
      import javax.swing.table.DefaultTableModel;

      public class Test{

          public static void main(String argv[]) {
              DefaultTableModel c = new DefaultTableModel();
              c.setColumnCount(5);
              if (c.getColumnCount()!=5) {
                  System.out.println("Method sets incorrect value "
                          + c.getColumnCount());
              } else {
                  System.out.println("Ok");
              }
          }

      }
      -------------------- output -------------------
      Method sets incorrect value 0

      ======================================================================

            Assignee:
            Philip Milne (Inactive)
            Reporter:
            Ali Ali (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: