The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

JTable color to the scrollpane.

Posted by Robert on February 15, 2002 at 8:28 AM

Hi

Try:
scrollpane.getViewport().setBackground(myTable.getBackground());

> Here I also ask a question about the JTable and >JScrollPane.The background color of the table is white and >JScrollPane's is gray.
> How can I set it to white for the visual effect?I have use the >code "scrollPane.setBackground(Color.white);" just after the >new JScrollPane(table).




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us