]> ruin.nu Git - moosique.git/blobdiff - MooViewCounter.java
removed some stuff
[moosique.git] / MooViewCounter.java
index 45a9280fff5fed228eb3073063ef74dbc0b3ae99..2775027b2e0d1f64702ebad376c6a29ee3c4756b 100644 (file)
@@ -1,4 +1,5 @@
 import javax.swing.*;
+import java.awt.*;
 
 /**
  * 
@@ -7,19 +8,25 @@ import javax.swing.*;
  * @version 1
  */
  
-public class MooViewCounter {
+public class MooViewCounter extends JPanel {
 
        /** 
         * Creates 
         */
-       public MooViewCounter () {
-
+       public MooViewCounter (int beatsPerMeasure1, int beatsPerMeasure2) {
+       
        }
 
-       /** 
-        * 
-        */
-       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, 
+                       }
+               }
        }
 }