jm.gui.show.NoteGraphic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmusic Show documentation
Show all versions of jmusic Show documentation
JMusic - Java Music Library
The newest version!
package jm.gui.show;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
public class NoteGraphic extends Component implements MouseListener {
NoteGraphic() {
super();
this.addMouseListener(this);
}
public void mousePressed(MouseEvent me) {
System.out.println("X is: " + me.getX());
}
public void mouseClicked(MouseEvent me) {
}
public void mouseEntered(MouseEvent me) {
}
public void mouseExited(MouseEvent me) {
}
public void mouseReleased(MouseEvent me) {
}
}