posted 17 years ago
As I said before, it's not the table's background you are seeing,
but the scroll pane's. Or to be more precise, the background of
the scroll pane's viewport. You'll get the effect you want with
scroll.getViewport().setBackground(Color.pink), or probably
use a color you like better than pink.
btw, is there a reason you are setting the layout manager to null
and calling setBounds? This has nothing to do with your background
color problem, of course, but I'd prefer something like this
[ December 12, 2006: Message edited by: Brian Cole ]