]> ruin.nu Git - moosique.git/commitdiff
more font changes..
authorMichael Andreen <harv@ruin.nu>
Sat, 10 May 2003 00:31:04 +0000 (00:31 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 10 May 2003 00:31:04 +0000 (00:31 +0000)
MooNoteElement.java

index 1225fe9833ad905f5c98a65136c86cd058357831..3640113034b314f79112f2f2302891df2c81e7fa 100644 (file)
@@ -21,6 +21,7 @@ public class MooNoteElement extends JPanel{
        public MooNoteElement (MooNote mn) {
                note = mn;
                setPreferredSize(new Dimension(20,20));
+               setFont(new Font("Helvetica", Font.PLAIN, 10));
 
                class MouseList implements MouseListener{
                        public void mouseClicked(MouseEvent event){
@@ -69,7 +70,7 @@ public class MooNoteElement extends JPanel{
                if (!(g instanceof Graphics2D))
                        return;
                Graphics2D g2 = (Graphics2D)g;
-               
+
                String note = ""; //TODO: shoudl really change this name..
                int pitch = this.note.getPitch();
                switch( pitch % 12)
@@ -87,9 +88,9 @@ public class MooNoteElement extends JPanel{
                        case 10: note = "A#"; break;
                        case 11: note = "B"; break;
                }
-               
+
                g2.drawString(note +" "+(pitch/12), 2, 2);
 
        }
-                       
-}
\ No newline at end of file
+
+}