krabs пре 8 година
родитељ
комит
a368ae1737
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/ui/view/MyCanvas.java

+ 1 - 1
src/ui/view/MyCanvas.java

@@ -37,6 +37,7 @@ class MyCanvas extends JPanel implements MouseListener
     public void paintComponent(Graphics g)
     public void paintComponent(Graphics g)
     {
     {
         // Draws the image to the canvas
         // Draws the image to the canvas
+    	super.paintComponent(g);
         g.drawImage(img, x, y, null);
         g.drawImage(img, x, y, null);
     }
     }
 
 
@@ -69,7 +70,6 @@ class MyCanvas extends JPanel implements MouseListener
         y = e.getY();
         y = e.getY();
 
 
         Graphics g = img.getGraphics();
         Graphics g = img.getGraphics();
-        g.fillOval(x, y, 3, 3);
         System.out.println("Draw!");
         System.out.println("Draw!");
 		repaint();
 		repaint();
 	}
 	}