public class ImageMusic extends Applet{

    Image img;
    public void paint(Graphics g) {
        img=getImage(getCodeBase(),"glm.jpg");
        g.drawImage(img, 10, 10, this);
        play(getCodeBase(),"秋酿.wav");
    }
}
 


编写一个Applet,显示一副图像并配上背景音乐

相关文章:

  • 2022-12-23
  • 2022-03-03
  • 2021-11-17
  • 2021-10-09
  • 2021-06-17
  • 2021-12-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-09-04
  • 2021-04-26
  • 2021-07-10
相关资源
相似解决方案