• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

table size

 
Bhuvan mehra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i restrict the size of table (no. of rows)?
.
jt = JTAble(new DefaultTableModel())
sp = JScrollPane (jt)
this.add(sp)
i am using like that.
size of table goes out of srceen.
and when i call criteriaFind(*,*) i.e show all rows.
few last rows are not visible in this case.
need help.
bhuvan.
[ April 10, 2002: Message edited by: Bhuvan ]
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are supposed to use only Swing components. Try JScrollPane.
 
Bhuvan mehra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Sai,
i am using JScrollPane but in my message mentioned ScrollPane.
sorry for that.
any solution to the problem.
problem is, table size is fixed. wheather it contains 1,2 or all records.
and fixed size of Table doesn't fit in monitor.
regards,
bhuvan.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic