This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design forum!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JTable in JScrollPane
jQuery in Action, 3rd edition