Usman Ahmed
Usman Ahmed

Reputation: 79

JScrollpane Look and Feel

Hello: I am using a JScrollpane with JTable. I wanna change the unused area color. Please let me know if it is possible?

Upvotes: 0

Views: 480

Answers (1)

kleopatra
kleopatra

Reputation: 51524

you question is not entirely clear, so playing a bit of guessing game here: I assume you want the JTable to visually fill the complete height of the parent container (which is a JViewport in your case), so the method you are looking for is

table.setFillsViewportHeight(true)

Upvotes: 2

Related Questions