Search in sources :

Example 11 with CompiereColor

use of org.compiere.plaf.CompiereColor in project adempiere by adempiere.

the class CPanel method setBackground.

//  init
/**************************************************************************
	 *  Set Background - ignored by UI -
	 *  @param bg ignored
	 */
public void setBackground(Color bg) {
    if (bg.equals(getBackground()))
        return;
    super.setBackground(bg);
    //  ignore calls from javax.swing.LookAndFeel.installColors(LookAndFeel.java:61)
    //if (!Trace.getCallerClass(1).startsWith("javax"))
    setBackgroundColor(new CompiereColor(bg));
}
Also used : CompiereColor(org.compiere.plaf.CompiereColor)

Aggregations

CompiereColor (org.compiere.plaf.CompiereColor)11 BigDecimal (java.math.BigDecimal)3 Component (java.awt.Component)1 Dimension (java.awt.Dimension)1 Point (java.awt.Point)1 GridController (org.compiere.grid.GridController)1 GridSynchronizer (org.compiere.grid.GridSynchronizer)1 VSortTab (org.compiere.grid.VSortTab)1 VTabbedPane (org.compiere.grid.VTabbedPane)1 GridField (org.compiere.model.GridField)1 GridTab (org.compiere.model.GridTab)1 GridWindow (org.compiere.model.GridWindow)1 GridWindowVO (org.compiere.model.GridWindowVO)1 GridWorkbench (org.compiere.model.GridWorkbench)1 MColor (org.compiere.model.MColor)1 MQuery (org.compiere.model.MQuery)1 ValueNamePair (org.compiere.util.ValueNamePair)1