Пример #1
0
 public Surface() {
   setBackground(BLACK);
   addMouseListener(
       new MouseAdapter() {
         public void mouseClicked(MouseEvent e) {
           if (thread == null) start();
           else stop();
         }
       });
 }
Пример #2
0
 public WindingRule() {
   setBackground(WHITE);
 }
Пример #3
0
 public Tree() {
   setBackground(WHITE);
 }