public void setForeground(Color _color) { if((delegate_==this)||(delegate_==null)) super.setForeground(_color); else delegate_.setForeground(_color); }
protected BuLabel addRedLabel(final Container _c) { final BuLabel r = new BuLabel(); r.setForeground(Color.red); _c.add(r); return r; }
public Component getListCellRendererComponent(final JList _list,final Object _value,final int _index, final boolean _isSelected,final boolean _cellHasFocus){ if (_value == null) { if (nullRenderer_ == null) { nullRenderer_ = new BuSeparator(); } return nullRenderer_; } final PaletteCouleur p = (PaletteCouleur) _value; title_.setText(p.getTitle()); renderer_.setPalette(p); if (_isSelected) { title_.setForeground(_list.getSelectionForeground()); super.setBackground(_list.getSelectionBackground()); } else { title_.setForeground(_list.getForeground()); super.setBackground(_list.getBackground()); } return this; } }
public boolean valide() { if (CtuluLibString.isEmpty(tf.getText())) { lb.setForeground(Color.RED); lb.setToolTipText(CtuluLib.getS("Le nom ne doit pas tre vide")); return false; } return true; }
r.setForeground(fg); r.setBackground(bg); r.setHorizontalAlignment(a);
public Component getTableCellRendererComponent(final JTable _table,final Object _value,final boolean _isSelected, final boolean _hasFocus,final int _row,final int _column){ if (_value == null) { if (nullRenderer_ == null) { nullRenderer_ = new BuSeparator(); } return nullRenderer_; } final PaletteCouleur p = (PaletteCouleur) _value; title_.setText(p.getTitle()); renderer_.setPalette(p); if (_isSelected) { title_.setForeground(_table.getSelectionForeground()); super.setBackground(_table.getSelectionBackground()); } else { title_.setForeground(_table.getForeground()); super.setBackground(_table.getBackground()); } return this; }
super.setForeground(((JList)_comp).getSelectionForeground()); super.setForeground(UIManager.getColor("Tree.selectionForeground")); super.setForeground(((JTable)_comp).getSelectionForeground()); super.setForeground(_comp.getForeground());
r.setIcon(option.getIcon()); r.setDisabledIcon(option.getIcon()); if(!e) r.setForeground(_list.getBackground().darker());
r.setForeground(Color.red); testlink = false;
public final void valideExpr() { expr_.getParser().parseExpression(getExprText()); isValid_ = !expr_.getParser().hasError(); if (isValid_) { txtError_.setForeground(Color.BLACK); txtError_.setText(CtuluLib.getS("Valide")); txtError_.setToolTipText(txtError_.getText()); } else { txtError_.setForeground(Color.RED); txtError_.setText(expr_.getParser().getError(0) + (expr_.getParser().getNbError() > 0 ? "..." : CtuluLibString.EMPTY_STRING)); txtError_.setToolTipText(expr_.getParser().getHtmlError()); } btValid_.setEnabled(false); if (btEvaluate_ != null) { btEvaluate_.setEnabled(isValid_); } Variable[] newVar = null; if (isValid_) { newVar = expr_.findUsedVar(); Arrays.sort(newVar, new VariableComparator()); } if (newVar != varToSet_ && !Arrays.equals(varToSet_, newVar)) { varToSet_ = newVar; tModel_.fireChanged(); } expr_.findUsedVar(); }
cbSaveVideo_.addItemListener(this); final BuLabel buLabel = new BuLabel(EbliLib.getS("Dimension des images en sortie")); buLabel.setForeground(CtuluLibSwing.getDefaultTitleBorderColor()); savePn.add(buLabel); pnDimImages_ = new CtuluImageDimensionChooserPanel();