From 2c2d2bff843fc32659acc06c9893a0439ed51c62 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 10 May 2003 00:31:04 +0000 Subject: [PATCH] more font changes.. --- MooNoteElement.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MooNoteElement.java b/MooNoteElement.java index 1225fe9..3640113 100644 --- a/MooNoteElement.java +++ b/MooNoteElement.java @@ -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 + +} -- 2.39.2