Short Answer
import java.awt.*;
import java.applet.*;
import javax.swing.*;
public class JSound extends JApplet
{
AudioClip sound;
public void init()
{
sound = getAudioClip(getCodeBase(),"mysteryTune.au");
}
public void start()
{
___________________________________
}
public void stop()
{
___________________________________
}
public void paint(Graphics g)
{
super.paint(g);
Graphics2D g2D = (Graphics2D)g;
g2D.drawString("Listen to the mystery tune ", 10, 10);
}
}
In the first shaded line provided, write the loop() method to play the mysteryTune.au sound continually. On the second shaded line, write the stop() method to halt the mysteryTune.au sound file.
Correct Answer:

Verified
sound.loop...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q62: Which of the following cannot be performed
Q63: What are the three object tag attributes
Q64: Usually, you place three attributes within the
Q65: The extension of an HTML document should
Q66: A(n) _ is a likeness of a
Q67: Match each term with the correct statement
Q68: _ contains many commands that allow you
Q69: <object code = "AClass.class" width = 300
Q70: <html><br>_<br></object><br></html><br>In the blank line provided, write the
Q72: Because applets execute in a browser, the