noteVelocity = ""+note.getVelocity();
}
+ public MooNote getNote(){
+ return note;
+ }
+
class MAdapter extends MouseAdapter {
public void mousePressed(MouseEvent e) {
if (e.isControlDown()) {
if (source == popupProp) {
new MooDialog(note);
} else if (source == popupRemove) {
- mtv.remove((MooNoteElement)((JComponent)e.getSource()).getParent().getParent());
+ remove();
}
}
}
+
+ protected void remove(){
+ mtv.remove(this);
+ }
+
}