This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!