Setting Colors
You can use the following methods to set the component’s background and foreground colors:
setBackground(Color c)
setForeground(Color c)
Example:
setBackground(Color.yellow); setForeground(Color.red);
Previous slide
Next slide
Back to first slide
View graphic version