I GUESS THIS IS ERROR - CAN YOU CONFIRM?
"You can send an ImageIcon object as the Image argument that drawImage() expects." T/F

"To start playing the AudioClip, you need to call the start() method on it." T/F // On the obj mean here?

Give us your answers and reasons for the answer.

ImageIcon OBJ IS SWING but function drawImage() awaits awt.Image, so must be ERROR...PLEASE CONFIRM...T/F

SECOND if mean obj of AudioClip, I think is true....is this that, really means? T/F

Have you read the API doc for the ImageIcon class?
What class is the drawImage() method in?

What is the "ERROR"?

1. "send an ImageIcon object as the Image argument that drawImage() expects" this will be true if and only if an ImageIcon is also an Image, ie it extends the Image class - which you can find out in less than 30 seconds by looking at the ImageIcon API doc.

2. "start playing the AudioClip, you need to call the start() method " (yes this means "AudioClip object"). Once again, less than 30 seconds with the API doc for AudioClip will give you the answer.

so first False second True

Edited 5 Years Ago by lse123: n/a

void loop()
Starts playing this audio clip in a loop.
void play()
Starts playing this audio clip.
void stop()
Stops playing this audio clip.

It's your homework, so that's your call. But you've done the necessary research, so there's no reason to doubt your answers ;-)

This article has been dead for over six months. Start a new discussion instead.