]> ruin.nu Git - moosique.git/blobdiff - MooViewCounter.java
*** empty log message ***
[moosique.git] / MooViewCounter.java
index db6a036fb0fd43f65d51ab483f56c1fc154bedc5..ce69af266226c03a02a3b9f6cc978b6bb06bd1ff 100644 (file)
@@ -1,25 +1,32 @@
 import javax.swing.*;
+import java.awt.*;
 
-/*
+/**
  * 
  * 
  * @author  Andersson, Andreen, Lanneskog, Pehrson
  * @version 1
  */
  
-public class MooViewCounter {
+public class MooViewCounter extends JPanel {
 
-       /* 
+       /** 
         * Creates 
         */
        public MooViewCounter () {
-
+       
        }
 
-       /* 
-        * 
-        */
-       public void () {
-       
+       public void paintComponent(Graphics g) {
+               super.paintComponent(g);
+
+               if (!(g instanceof Graphics2D)) return;
+               Graphics2D g2 = (Graphics2D)g;
+               
+               for (int i = 0; i < 10; i++) {
+                       for (int j = 0; j < 10; j++) {
+                               // g2.drawLine(0,i*20, 
+                       }
+               }
        }
 }