• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change the color of Scrollpane  RSS feed

 
ramdas kamath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have created a JFrame and added a JscrollPane with Jtable. The JScrollPane is grey in color. How do I change its color. I am new to swing
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ramdas,
u can use
public void setBackground(Color bg);
method to set the background color.

regards
deeksha
 
ramdas kamath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks deeksha,
i forgot to mention that i had already tried setBackground(color bg) method. It does not work. I thinks its the JTable which comes on top. The remaining of the Jtable(excluding rows and columns) comes in grey colour. How can we change the colour?
regards,
kamath
[This message has been edited by ramdas kamath (edited February 08, 2001).]
[This message has been edited by ramdas kamath (edited February 08, 2001).]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!