File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable in JScrollPane" Watch "JTable in JScrollPane" New topic

JTable in JScrollPane

tushar jain

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().
I agree. Here's the link:
subject: JTable in JScrollPane
It's not a secret anymore!