Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

JCrossScrollPane

Thread view: 
Mendrik - 13 Jan 2004 14:46 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.