aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JTable in JScrollPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable in JScrollPane" Watch "JTable in JScrollPane" New topic
Author

JTable in JScrollPane

tushar jain
Greenhorn

Joined: Aug 07, 2001
Posts: 10
I Have one JApplet which has Four Tabs (Using JTabbedPane component).One of the Tab has Box (Verical) which has in turn three more boxes.
Middel Box (Vertical) has one Box (Horizontal) and one JPanel( FlowLayout- Left). This JPanen Has one JScrollPane which has one JTable. I Want to limit the size of this JScrollPane. Is there any way out.
Any help will be appreciated.
Thanks in advance.
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
try myScrollPane.getViewport().setPreferredSize().
chantal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable in JScrollPane