Method getBackground()
Return type: java.awt.Color
Member of: java.awt.Component
[api documentation ] [ main menu]

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

1 bg = this.getBackground().darker();
2 return colorToString(textpane.getBackground());
3 if (e.getSource()==subjTf){subjTf.setBackground(this.getBackground());}
4 g.setColor(c.getBackground());
5 ((JRadioButton)(v.elementAt(i))).setBackground(_var._value.getBackground());
6 final Color invForeground = c.getBackground();
7 Color c = JColorChooser.showDialog(this, Msg.get("label.choosefontcolor") , fontColor.getBackground() );
8 setBackground(_var._value.getBackground());
9 if (!color.equals(m_text.getBackground()))
10 Color back = nsc.getBackground();
11 setBackground(comboBox.getBackground());
12 getRowHeader().getView().setBackground( getViewport().getBackground() );
13 assertEquals(ref.createToolTip().getBackground(), t.getBackground());
14 sColor = p.getBackground();
15 g.setColor(getBackground());
16 component.setBackground(getBackground());
17 products.setBackground(getBackground());
18 Color fg = getForeground(), bg = getBackground();
19 cb.setBackground(list.getBackground());
20 graphics2D.setColor ( getBackground ( ) );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.