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