RIGHT_TO_LEFT not working in JScroll Pane

From: Don Leckie (don_at_leckieinc.com)
Date: 02/06/05


Date: Sun, 6 Feb 2005 17:40:37 -0500

Hi,

I'm upgrading our software from JDK 1.3.1_03 to JDK 1.4.2_07 and I'm having
trouble with ComponentOrientation.RIGHT_TO_LEFT working correctly in a
JScrollPane.

One of my windows has a JSplitPane. There is a JScrollPane in each side.
There's a JTable in each scroll pane. The left scroll pane has the vertical
JScrollBar on the left side. The right scroll pane has the veritcal
JScrollBar on the right side (default).

The problem is with the left scroll pane. The table header is positioned
correctly, but the table data is offset to the right by about 100 pixels;
therefore the table data columns aren't lined up correctly with the header
columns. There are two columns. When I resize the second column, the table
data scrolls horizontally as if I was moving the thumb in the horizontal
scroll bar. The header columns never scroll.

I'm not doing anything complicated. Just a simple table within a scroll
pane.

Has anyone seen this behavior? I've been working on this for 3 days, mostly
the weekend, and simply cannot figure out what's happening.

Thank you,
Don



Relevant Pages

  • RIGHT_TO_LEFT not working in JScroll Pane
    ... I'm upgrading our software from JDK 1.3.1_03 to JDK 1.4.2_07 and I'm having ... There's a JTable in each scroll pane. ... JScrollBar on the right side. ... The table header is positioned ...
    (comp.lang.java.gui)
  • Put a vertical scroll bar on left side of JScroll Pane
    ... I'm upgrading our software from JDK 1.3.1_03 to JDK 1.4.2_07 and I'm having ... There's a JTable in each scroll pane. ... JScrollBar on the right side. ... The table header is positioned ...
    (comp.lang.java.gui)
  • JScrollPane
    ... Are there any known problems with the JScrollPane in jdk 1.5? ... the scroll pane to show up, but not to autoscroll. ...
    (comp.lang.java.programmer)
  • Re: JTable column headers - how?
    ... johnmmcparland wrote: ... You need to make sure that the table is going into a JScrollPane, too, since the Header is displayed by the scroll pane, not the table itself. ...
    (comp.lang.java.gui)