Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2005

Tip: Looking for answers? Try searching our database.

JTable horizontal scrollbar problem

Thread view: 
Sathishkumar - 22 Jan 2005 07:44 GMT
Dear All,

JTable horizontal scrollbar problem

I have one JFrame with gridbaglayout.
And i have jtable with in scrollpane. this scrollpane added in the
JPanel.
i added the jpanel in the JFrame. i have 100 columns and 100 rows in
the jtable.
When i see the output i am able to see the vertical scrollbar. But i
am not able to see the horizontal scrollbar. When ever i resize the
JFrame, JTable also getting resized, but it is not displaying the
horizontal scroll bar.

If some one know about this problem. please help me to resolve.

-sathish
Sathish - 22 Jan 2005 08:21 GMT
if you any one knows this problem please reply
Frank Liu - 23 Jan 2005 23:59 GMT
The default behavior of JTable is to squeeze all the columns into available
space. So you will not see the horizontal scroll bar unless you modify the
default.

Frank

> if you any one knows this problem please reply
Roland - 22 Jan 2005 09:22 GMT
> Dear All,
>
[quoted text clipped - 13 lines]
>
> -sathish
And all those 100 columns get squeezed in the scrollpane?
Check out
<http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTable.html#setAutoResizeMode(int)>

Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.