I want to display a picture on the form, and can play a small sound file (format is .WAV) while displaying the picture. Then you can draw a line on the image, set the line wide and line. colour. Thank you
Panel on the g2.drawimage. g2.drawline ()
The music code is as follows
Import javax.swing.swingutilities;
Import java.applet. *;
Import java.net.URL;
Class test {
Public static void main (String [] args) {
Swingutilities.invokelater (new runnable () {
Public void run () {
Try {
Audioclip ac = applet.newaudioClip (New URL ("File: / C: /Windows.wav");
Ac.loop ();
} catCH (Exception Exception) {
Exception.printStackTrace ();
}