• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fill colors for Panel & Button

 
may tan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi pple..

Can someone tell me how & where (which public void) to put in color coding for Panel & Button??

Thanks!!
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to out Swing Forum.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Panel and Button both extend from Component which has a 'setBackground' method. You can find it listed in the 'Methods inherited from class java.awt.Component' section of the api for each class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!