X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooNoteElement.java;h=65afa7bc8061552e130eb6bb1af4a63ed15e86a7;hb=5aa1ca5bdce5b109be8e616b6575b91212192ebd;hp=3b08887000f07f515cbbcfab170972ef6fb0cfe3;hpb=5380690b9fc56b683d15765382669d79c50d3414;p=moosique.git diff --git a/MooNoteElement.java b/MooNoteElement.java index 3b08887..65afa7b 100644 --- a/MooNoteElement.java +++ b/MooNoteElement.java @@ -14,6 +14,7 @@ public class MooNoteElement extends JPanel { private MooNote note; private int columns; private boolean selected; + public static final Color bgColor = new Color(160, 218, 255); /** * Creates a new note element. @@ -23,6 +24,8 @@ public class MooNoteElement extends JPanel { public MooNoteElement (MooNote mn) { note = mn; columns = mn.getDuration() / 24; + setBorder(BorderFactory.createLineBorder(Color.black)); + setBackground(bgColor); } /**