Article View: borland.public.jbuilder.java.swing
Article #10116Please help me with JTable & ScrollPane !!!
From: Thomas Orgel
Date: Tue, 09 Nov 1999 00:00
Date: Tue, 09 Nov 1999 00:00
83 lines
3306 bytes
3306 bytes
--------------76F8123CAAC2612F50F5C07B
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
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
--------------76F8123CAAC2612F50F5C07B
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I have a JTable construced on ScrollPane.
<p><i> </i> this.InfoTable = new JTable(this.InfoData,
this.InfoColumnNames);
<br> InfoTable.setPreferredScrollableViewportSize(new
Dimension(635, 70));
<br> this.InfoTable.setEnabled(false);
<br> this.InfoTable.removeEditor();
<br> JScrollPane scrollPane = new JScrollPane(InfoTable);
<p> scrollPane.setHorizontalScrollBar(scrollPane.createHorizontalScrollBar());
/*1*/<i></i>
<p><i> //registerBlattInfo is a JTabbedPane</i>
<br><i> </i> registerBlattInfo.add(scrollPane, new XYConstraints(10,16,635,170));
<br>
<br>
<p>My problem is, I want to have a horizontal ScrollBar, but it doesn't
work.
<p>I am thinking /* 1*/ must work, but it doesn't.
<p>I've already tried in Jbuilder3.0 to change the property of the ScrollPane.
<br>HorizontalScrollPane = always visible (or something like this :-) )
<br>But it also doesn't work.
<br>
<p>I've tried serveral things to add the horizontal scrollBar to my JTable.
<br>The vertical ScrollBar work's perfect, there are no problems. I am
already a little bit confused.
<p>thanks in advance
<br>greetings
<br>thomas
<br>
<br> </html>
--------------76F8123CAAC2612F50F5C07B--
Technical Details
Message-ID:
<38280AE4.B56423D2@sbox.tu-graz.ac.at>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,71a423f49c780447,start X-Google-Attributes: gid111d45,public From: Thomas Orgel <orgeltom@sbox.tu-graz.ac.at> Subject: Please help me with JTable & ScrollPane !!! Date: 1999/11/09 Message-ID: <38280AE4.B56423D2@sbox.tu-graz.ac.at> X-Deja-AN: 546403093 X-Accept-Language: de Content-Type: multipart/alternative; boundary="------------76F8123CAAC2612F50F5C07B" Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing