• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to Set the size of the JTable

 
kumar shiva
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,

Could any one please tell me how to set the Size of the JTable.(to increase the size of the Table).

Thanks,
Shiva
 
Himai Minh
Ranch Hand
Posts: 1256
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean how many rows of a JTable?

Maybe, create the DefaultTableModel, set the JTable's table model, put additional data to the model. Then the JTable is expanded.
Usually,JTable has no idea about your data. DefaultTableModel deals with your data and JTable only deals with the display of the model.
 
Nam Ha Minh
Ranch Hand
Posts: 502
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kumar shiva wrote:
Hello,

Could any one please tell me how to set the Size of the JTable.(to increase the size of the Table).

Thanks,
Shiva


To change the size of the table, you should change the size of the JScrollPane which wraps the table.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic