P.27 (Add a Key at Specified Position When the Program is Run)


public Piano() {
  super(800, 340, 1);
  // Add the following line
  addObject( new Key("g", "3a.wav"), 300, 180 );
}
Last modified on
Engineering DIY Workshop 2018