]> ruin.nu Git - moosique.git/blobdiff - MooNoteElement.java
sets and gets the channel..
[moosique.git] / MooNoteElement.java
index dd31c86b800cc2b7cb1e8a1c077f12bee74f8ad2..65afa7bc8061552e130eb6bb1af4a63ed15e86a7 100644 (file)
@@ -14,15 +14,18 @@ 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.
         * @param mn    the note that will be graphically represented
         * @param rows  the number of rows that the note will occupy
         */
-       public MooNoteElement (MooNote mn, int rows) {
+       public MooNoteElement (MooNote mn) {
                note = mn;
                columns = mn.getDuration() / 24;
+               setBorder(BorderFactory.createLineBorder(Color.black));
+               setBackground(bgColor);
        }
 
        /**