Hi,
I got a problem, which I'm not sure on how to take care of.
For it's rather hard to explain the problem, I'll try it with a sketch
:)
Basically I need a JTable seperated in 9 single parts.
+---------+-------------+---------+
| | | |
| | 1 | |
+---------+-------------+---------+-+
| | | | |
| 2 | 3 | 4 | |
+---------+-------------+---------+-+
| | | |
| | 5 | |
+---------+-------------+---------+
+-------------+
the lines on the left and on the bottom part should be scrollbars.
Each of the 9 parts of the table can hold any given amount of cells.
Well my goal is to scroll this table cross-wise. The edge-parts are
always fixed, while the remaining inner-cross scrolls - depending on
which scrollbar you gonna use. So using the left scrollbar the
table-parts 2,3 and 4 would scroll, the bottom scrollbar would affect
only 1,3 and 5. The viewport of tablepart 3 would depend on the
position of both scrollbars.
It's a dumb idea, but the customers wants it, well he get's it.
I just dont know exactly how to do it. My first idea was to write my
own JScrollPane initialized with an rectangle, which would span up
table-part no 3.
But I'm not sure if i'm going the right way here and whither continue.
So any ideas on how it would be done best, without writing too much
code on myself - that would be terrific :-)
thanks in advance,
Andreas Prudzilko
Dieter Mach - 13 Jan 2004 15:45 GMT
Maybe this example will be helpful:
http://www2.gol.com/users/tame/swing/examples/JTableExamples6.html
Dieter Mach
Mendrik schrieb:
> Hi,
>
[quoted text clipped - 40 lines]
> thanks in advance,
> Andreas Prudzilko
Mendrik - 14 Jan 2004 12:49 GMT
> Maybe this example will be helpful:
>
> http://www2.gol.com/users/tame/swing/examples/JTableExamples6.html
>
> Dieter Mach
well, i've seen it already, the ugly thing about this solution is that
they often use 2 different tablemodels as well as 2 different
jtables...
i would require 9 jtable objects and struggle with synchronization.