Description: 1) programming ideas: first, because to make examples of this exercise simulated piano, so we must first generate the program interface: first m_ImgUp generated when the keyboard, mouse, keyboard, display pictures by loosening the statement Image, then m_ImgDown generate keyboard and mouse through the statement Image Press keyboard display pictures, and finally through the statement m_ImgUp = getImage (getDocumentBase (), " img/up.gif" ) and statements m_ImgDown = getImage (getDocumentBase (), " img/down.gif" ) load images, generate piano interface. Then, because to achieve the effect of simulated piano, so to simulate the sound playback, first by the statement AudioClip [] m_AudioClip = new AudioClip [14] to generate an array of audio objects, saving seven midrange and treble tones of seven, and finally, By function public void keyPressed (KeyEvent e) in response to press the keyboard action, to achieve the sound.
To Search:
File list (Check if you may need any files):
练习98模拟钢琴\AU\0.AU
..............\..\1.AU
..............\..\10.AU
..............\..\11.AU
..............\..\12.AU
..............\..\13.AU
..............\..\14.AU
..............\..\2.AU
..............\..\3.AU
..............\..\4.AU
..............\..\5.AU
..............\..\6.AU
..............\..\7.AU
..............\..\8.AU
..............\..\9.AU
..............\..\_desktop.ini
..............\IMG\DOWN.GIF
..............\...\Thumbs.db
..............\...\UP.GIF
..............\...\_desktop.ini
..............\Piano.class
..............\Piano.html
..............\Piano.java
..............\_desktop.ini
..............\练习98模拟钢琴.doc
..............\AU
..............\IMG
练习98模拟钢琴