• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to change the color of Scrollpane

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic