Пример #1
0
    @Override
    public void paintComponent(Graphics g) {
      super.paintComponent(g);

      bubbleField.draw(g);

      for (Bubble bubble : bubbeList) {

        bubble.drawBubble(g);
      }

      g.setColor(Color.WHITE);
      g.setFont(new Font("Courier New", Font.PLAIN, 16));
      g.drawString("Bubble " + bubble.toString(), 10, 20);
    }