• Post Reply Bookmark Topic Watch Topic
  • New Topic

i am not getting how to insert a arraylist to a JTable

 
ajay abcde
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i am tryiny to populate the JTable with the arraylist, but not getting how to do it .

can anyone help me how can i do it
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A list is one-dimensional, while a table is two-dimensional. Is a JTable really the best component for showing the contents of the list? Or might a JList be more appropriate? I'm asking because JList is easier to work with than JTable.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!