• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jTable / scrollbar / two screen system

 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i'm just testing my GUI with a well filled data file. all of a sudden i realized that my jTable behaves strangely:

scrolling it via mouse / scrollbar or moving the selection to the upper or buttom end of the table viewport results in only partial updates of the viewable table data (no more full updates).

imagine the window having a size to display 10 table columns at once, but the table itself containing 100 rows. if i move the selection up- or downwards, the displayed 10 rows will move, according to the selection. but only 1 or 2 rows are still updated, the rest remains unchanged, with little pixel mistakes in it (no more table grids between rows, for example)

even more strange: this happens only on one of my two screens (the bigger, non-primary one)

this last observation leeds me to the assumption that i'm dealing more with a general "swing on two screens"-problem then with a code problem.

or does my code have certain weaknesses? where can i search for those..?

oh, one last thing - i built up my table very close to the Habibi example ;-) nothing special or fancy, just a table displaying its model...

many thanks for comments,
jan
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jan, I'll take a wild swing ( ) at this one: I don't know what platform you are running on, but I will assume MS Windows. Doesn't Swing utilize DirectX nowdays? In that case perhaps a DirectX upgrade or driver upgrade will fix it. Also: Are you using the latest compiler vesion 1.4.2_max or 1.5.0_max? It may help you to post the issue as a topic in our Swing/AWT forum.

-Barry
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello barry,

thanks for your answer... i guess i'm a bit in the paranoid state - what you write makes perfect sense to me. i'm pretty sure now it's a driver / activex issue, and i'm not going to dive deeper into it now...

best regards,
jan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic