• Post Reply Bookmark Topic Watch Topic
  • New Topic

horizontal scrollbar of scrollpane which embeds JTable

 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a

The JScrollpane embeds a JTable.
But even if I've told the JScrollPane in the Constructor that there should allways be a Horizontal scrollbar, it'll won't be there (even if the table has bigger width than the viewport area of the Scrollpane).
Google teached me the trick:

This seems to work.
But: Can anybody explain me why this behaviour? Is it just a swing bug (am using jdk1.41) or is there some deep 'nd dark explanation for that behaviour.
regards Axel
[ August 09, 2003: Message edited by: Axel Janssen ]
[ August 09, 2003: Message edited by: Axel Janssen ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!