?? play.java
字號:
package bin;
import javax.swing.JApplet;
import java.applet.AudioClip;
class Play
{
JApplet ap = new JApplet();
AudioClip au = ap.newAudioClip(Play.class.getResource("..\\audio\\thirdGate.mid"));
public static void buttonClipStats()
{
JApplet ap = new JApplet();
AudioClip au = ap.newAudioClip(Play.class.getResource("..\\audio\\buttonMusic.wav"));
au.play();
}
public void muiscPlay()
{
au.loop();
}
public void muiscStop()
{
au.stop();
}
public static void frameMove()
{
JApplet ap1 = new JApplet();
AudioClip au1 = ap1.newAudioClip(Play.class.getResource("..\\audio\\frameMove.wav"));
au1.play();
}
public static void taxisOpen()
{
JApplet ap2 = new JApplet();
AudioClip au2 = ap2.newAudioClip(Play.class.getResource("..\\audio\\frm3.au"));
au2.play();
}
public static void taxisOk()
{
JApplet ap3 = new JApplet();
AudioClip au3 = ap3.newAudioClip(Play.class.getResource("..\\audio\\frm.au"));
au3.play();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -