Article View: borland.public.jbuilder.java.swing
Article #10118Re: Please help me with JTable & ScrollPane !!!
From: Ernesto Bascón Pantoja
Date: Tue, 09 Nov 1999 00:00
Date: Tue, 09 Nov 1999 00:00
47 lines
1867 bytes
1867 bytes
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:
<38282177.ABE1DC26@estudiantes.ucbcba.edu.bo>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38280AE4.B56423D2@sbox.tu-graz.ac.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,71a423f49c780447 X-Google-Attributes: gid111d45,public From: Ernesto Bascón Pantoja <bascone@estudiantes.ucbcba.edu.bo> Subject: Re: Please help me with JTable & ScrollPane !!! Date: 1999/11/09 Message-ID: <38282177.ABE1DC26@estudiantes.ucbcba.edu.bo> X-Deja-AN: 546432841 Content-Transfer-Encoding: 7bit References: <38280AE4.B56423D2@sbox.tu-graz.ac.at> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UCB Mime-Version: 1.0 Reply-To: bascone@estudiantes.ucbcba.edu.bo Newsgroups: borland.public.jbuilder.java.swing