X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooViewCounter.java;h=ce69af266226c03a02a3b9f6cc978b6bb06bd1ff;hb=ca56fc1424e8887b09375a52e8e02605d5dff175;hp=237d52313f8e53afa96dd5a4ea33a81b2b34dd04;hpb=801fe3cc9a1dff6eb87cf7842e6801afd3a0a3a2;p=moosique.git diff --git a/MooViewCounter.java b/MooViewCounter.java index 237d523..ce69af2 100644 --- a/MooViewCounter.java +++ b/MooViewCounter.java @@ -1,18 +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 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, + } + } } }