Method setBackground(Color bg)
Return type: void
Member of: javax.swing.JComponent
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 setBackground( Color.white );
2 setBackground(background);
3 this.setBackground(bg);
4 setBackground(color.brighter());
5 setBackground(color.darker());
6 setBackground(formSettings.getFormDesignerBackgroundColor());
7 if (e.getSource()==subjTf){lastFocusedTf=subjTf;subjTf.setBackground(ConfigManager.pastelBlue);}
8 editor.setBackground(background);
9 setBackground( defaultBackgroundColor );
10 setBackground( defaultBackgroundColor );
11 textPane.setBackground(color);
12 textPane.setBackground(parseColor(v));
13 b.setBackground(color);
14 editor.setBackground(props.getColorProperty(ConfigConstants.KEY_EDITOR_BG_COLOR));
15 jTextField1.setBackground(color);
16 c.setBackground(invBackground);
17 this.setBackground(Color.white);
18 this.scrollLabels[i].setBackground(bgColors[i]);
19 redline.setBackground(goodBadColor(good));
20 addButton.setBackground(buttonColor);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.