X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=blobdiff_plain;f=MooViewCounter.java;fp=MooViewCounter.java;h=ce69af266226c03a02a3b9f6cc978b6bb06bd1ff;hp=aea79444a2e36e44b5255e1598d59f9a4d192b5e;hb=c83e74facf762222fe4578f175408cc50d360518;hpb=91e7c1726702161c6552cedf00ad59d9399082f4 diff --git a/MooViewCounter.java b/MooViewCounter.java index aea7944..ce69af2 100644 --- a/MooViewCounter.java +++ b/MooViewCounter.java @@ -1,4 +1,5 @@ import javax.swing.*; +import java.awt.*; /** * @@ -7,12 +8,25 @@ import javax.swing.*; * @version 1 */ -public class MooViewCounter { +public class MooViewCounter extends JPanel { /** * Creates */ public MooViewCounter () { + + } + + 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, + } + } } }