Article View: borland.public.jbuilder.java.swing
Article #644Re: JScrollPane for JTable in a GridBagLayout
From: John McGrath [TeamB]
Date: Sat, 02 Apr 2005 04:49
Date: Sat, 02 Apr 2005 04:49
22 lines
1641 bytes
1641 bytes
On 4/1/2005 at 9:26:20 AM, Oliver wrote:
> 1) if i make the JScrollPane as big as the JTable, then there appears a
> horizontal ScrollBar
> (scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_A
> LWAYS); but it has no knob for scrolling (i assume because they have the
> same size, the system thinks its not necessary)
>
> 2) if i make the JScrollPane as big as t (inside the screen), the JTable
> becomes also smaller (which i do not want - i want the JTable to be
> bigger than the screen).
Can you post a runnable example of the problem?
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<xn0e0hxyxjpicu000@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<424d5a0c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,85f8a271796300bf X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: JScrollPane for JTable in a GridBagLayout Newsgroups: borland.public.jbuilder.java.swing References: <424d5a0c$1@newsgroups.borland.com> User-Agent: XanaNews/1.17.3.1 Message-ID: <xn0e0hxyxjpicu000@newsgroups.borland.com> X-Ref: newsgroups.borland.com ~XNS:0000034C MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.158.33.210 Date: 1 Apr 2005 20:49:50 -0800 X-Trace: newsgroups.borland.com 1112417390 141.158.33.210 (1 Apr 2005 20:49:50 -0800) Lines: 22 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail