0

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?

4
Contributors
10
Replies
11
Views
6 Years
Discussion Span
Last Post by mKorbel
Featured Replies
0

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

0

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

What is the "ERROR"?

0

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.

0

so first False second True

Edited by lse123: n/a

0

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

0

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 topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.