Article View: borland.public.jbuilder.java.swing
Article #12899Re: JSplit + JTable
From: Vasudevan Srinivasan
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
19 lines
1230 bytes
1230 bytes
1. are you setting the resizemode like in jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_COLUMNS); ? if so, you have to set it to AUTO_RESIZE_OFF in order to expand columns by dragging mouse 2. to add scrollbar you have to do like: JScrollPane tableScrollPane; tableScrollPane = JTable.createScrollPaneForTable(jtable1); gut luk Peter wrote: > here is my problem: I am adding JTable to JSplitPane and table's > size(width) is bigger than split panel, if I do this then all collumn > sizes are changed in order to fit in...but I wanna preserve column sizes > and add horizontal sroll bar....'ve tried almost any combination but in > no avail...if anybody knows how to do this please to me know...pete
Technical Details
Message-ID:
<36274738.5000ACDA@netrisk.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36270E41.551270@terren.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,5fce6b23702a9097 X-Google-Attributes: gid111d45,public From: Vasudevan Srinivasan <vasudevan@netrisk.com> Subject: Re: JSplit + JTable Date: 1998/10/16 Message-ID: <36274738.5000ACDA@netrisk.com> X-Deja-AN: 401769350 Content-Transfer-Encoding: 7bit References: <36270E41.551270@terren.com> Content-Type: text/plain; charset=us-ascii Organization: NetRisk Inc. Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing