Posted by Akanksha on December 18, 2001 at 3:09 AM
Pls. somebody reply this question ,even i want to know how to change dynamically the no. of rows and column in JTables > The nodes of my JTree are rendered with the JLabel (default > implementation). I draw the tree a first time and the display > is OK (label are fully displayed). > I've created JTable and then I need to chande dynamically the number of rows and columns . I tryed to initialize the Table with the new number rows and columns , but it doesn't works . > JTable tbl = new JTable(2,2); > ....... > then tbl = new Table(5,7); > I tryed to repaint it e.t.c. , but it didn't help . > Does anybody know how to do it?