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 a 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 a JScrollPane" Watch "JTable in a JScrollPane" New topic

JTable in a JScrollPane

glen kaatz

Joined: Apr 29, 2001
Posts: 6
I noticed that I can resize the columns in a JTable - but I also noticed that the JScrollPane doesn't add a horizontal scroll when the column is sized (dragged) outside the viewport. How would I get it to slap on the horizontal scroll?
Thanks. I love you man!
Shardool Karnik

Joined: Oct 26, 2001
Posts: 2
You can set the property
this should work I think ....
good luck!
- DooL
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 a JScrollPane
It's not a secret anymore!