Exemple #1
0
 public void setForeground(Color fg) {
   super.setForeground(fg);
   if (label != null) {
     label.setForeground(fg);
     draw.setForeground(fg);
   }
 }
Exemple #2
0
 public void setBackground(Color bg) {
   super.setBackground(bg);
   if (label != null) {
     label.setBackground(bg);
     draw.setBackground(bg);
   }
 }
Exemple #3
0
 public void setName(String n) {
   name = n;
   label.setText(name);
 }