• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jTable / scrollbar / two screen system

 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic