• Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollPane

 
kavan desai
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,

I have on problem with jscrollpane..I am using jtable as the client of JScrollPane, when jtable has only two rows, size(height) of the JscrollPane does not changes as the size(height) of the JTable. So what should i do to minimize the size(height) of the JScrollPane from its default size(height)? If anyboday knows then plz reply
 
Snoop One
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Kavan,

I do not know if I understand the problem correctly; hence, I would say that the scroll pane should not resize according to the client (in your case JTable) but according to its parent (the component that contains the JScrollPane). If you want to change the way the scroll pane is showing its client's information you should address these changes to the scrollpane's view port.

Hope it helped more than confusing...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!