Hi John,

  Look into putting the variable table in the row header view of the fixed table's 
scrollpane.  I've extended a JTable below with some code that should give you some 
insight.  There's also a bit of trickiness/synchronization involved with row selection 
and sorting (if you have it) in the table, but this should get you started in the 
right direction. 

===== code snippet ====

        m_scroll = new JScrollPane(m_table);
        m_viewport = new JViewport();
        m_viewport.setView(this);
        m_viewport.setPreferredSize(getPreferredSize());
        m_scroll.setRowHeaderView(m_viewport);
        m_scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, getTableHeader());

===== end  code snippet ====

 G'day Mike

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 03, 2003 6:01 AM
To: [EMAIL PROTECTED]
Subject: Swing digest, Vol 1 #397 - 1 msg


Send Swing mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        http://eos.dk/mailman/listinfo/swing
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Swing digest..."


Today's Topics:

   1. JTABLE - horizontal scrolling only for some columns ([EMAIL PROTECTED])

--__--__--

Message: 1
From: [EMAIL PROTECTED]
Date: Sun, 3 Aug 2003 04:35:34 EDT
Subject: JTABLE - horizontal scrolling only for some columns 
To: [EMAIL PROTECTED]


--part1_f8.2f29d61e.2c5e2356_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hi all,

in my JTABLE I have to scroll the horizontal scrollbar only from comumn 5 to 
the last, the columns 0 - 4 should bei fix ! Is this possible ?

thanks,
John

--part1_f8.2f29d61e.2c5e2356_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=
=3D"Arial" LANG=3D"2">Hi all,<BR>
<BR>
in my JTABLE I have to scroll the horizontal scrollbar only from comumn 5 to=
 the last, the columns 0 - 4 should bei fix ! Is this possible ?<BR>
<BR>
thanks,<BR>
John</FONT></HTML>

--part1_f8.2f29d61e.2c5e2356_boundary--


--__--__--

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing


End of Swing Digest
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to