🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10134

Re: Please help me with JTable & ScrollPane !!!

#10134
From: Mark Wenzel
Date: Wed, 10 Nov 1999 00:00
52 lines
1955 bytes
Works perfectly, thanks...
Ernesto Basc�n Pantoja wrote in message
<38282177.ABE1DC26@estudiantes.ucbcba.edu.bo>...
>Try:
>   table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
>
>
>
>Thomas Orgel wrote:
>
>> I have a JTable construced on ScrollPane.
>>
>>     this.InfoTable = new JTable(this.InfoData, this.InfoColumnNames);
>>     InfoTable.setPreferredScrollableViewportSize(new Dimension(635,
>> 70));
>>     this.InfoTable.setEnabled(false);
>>     this.InfoTable.removeEditor();
>>     JScrollPane scrollPane = new JScrollPane(InfoTable);
>>
>>
>>
scrollPane.setHorizontalScrollBar(scrollPane.createHorizontalScrollBar());
>> /*1*/
>>
>>     //registerBlattInfo is a JTabbedPane
>>     registerBlattInfo.add(scrollPane, new
>> XYConstraints(10,16,635,170));
>>
>>
>>
>> My problem is, I want to have a horizontal ScrollBar, but it doesn't
>> work.
>>
>> I am thinking /* 1*/ must work, but it doesn't.
>>
>> I've already tried in Jbuilder3.0 to change the property of the
>> ScrollPane.
>> HorizontalScrollPane = always visible (or something like this :-) )
>> But it also doesn't work.
>>
>>
>> I've tried serveral things to add the horizontal scrollBar to my
>> JTable.
>> The vertical ScrollBar work's perfect, there are no problems. I am
>> already a little bit confused.
>>
>> thanks in advance
>> greetings
>> thomas
>>
>>
>
Technical Details
Message-ID: <80c5cj$e7n16@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38280AE4.B56423D2@sbox.tu-graz.ac.at> <38282177.ABE1DC26@estudiantes.ucbcba.edu.bo>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111d45,71a423f49c780447
X-Google-Attributes: gid111d45,public
From: "Mark Wenzel" <mwenzel@holtalliances.com>
Subject: Re: Please help me with JTable & ScrollPane !!!
Date: 1999/11/10
Message-ID: <80c5cj$e7n16@forums.borland.com>
X-Deja-AN: 546946204
References: <38280AE4.B56423D2@sbox.tu-graz.ac.at> <38282177.ABE1DC26@estudiantes.ucbcba.edu.bo>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing