Hi,
Im having some right hassel with
java 2d graphics.
One class (javaPiano.java) I have a Jpanel that draws a virtual keyboard, and play notes when you press the keys. I have a sperate class that is another jpanel which has music lines (drawStaff.java).
in the drawStaff class I have a method
public void drawNote (
String noteName, Graphics2d g1) {
//code here
}
from the javapiano class I call the drawNote method by saying
String a="octave1C";
drawStaff.drawNote(a,g2);
the problem I am having, its drawing the note on the javapiano screen, rather than the drawStaff screen. And i really havent a clue why. I would appreciate some help on this please.
Thanks