> Hi thanks for reading,
>
[quoted text clipped - 10 lines]
> spTable= new JScrollPane(table);
> spTable.removeAll();
This removes the scrollpane's JViewport and JScrollBars. Don't do this!
> spTable.validate();
> spTable.add(myTable);
This adds directly to the scrollpane, not to its JViewport. Don't do!
Instead do:
spTable.setViewportView(myTable);
> spTable.validate();
>
> I also tried revalidate, but it still doesn't seem to change anything.
> It seems like a simple problem, but I cant figure it out...
The validate() calls should not be needed anymore.
See the javadoc of JScrollPane#setViewportView. Quoted from there:
"Applications should not add children directly to the scrollpane."

Signature
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')
6e - 31 Aug 2005 17:48 GMT
Thanks, it worked wonders.