Multiple Choice
You have a class which extends the JComponent class. In this class you have created a painted graphical object. Your code will change the data in the graphical object. What additional code is needed to ensure that the graphical object will be updated with the changed data?
A) You must call the component object's paintComponent() method.
B) You must call the component object's repaint() method.
C) You do not have to do anything - the component object will be automatically repainted when its data changes.
D) You must use a Timer object to cause the component object to be updated.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: The _ class in the javax.swing package
Q3: Use the _ method to specify the
Q4: You have created a class named Motor
Q5: Consider the code snippet below: public class
Q6: To respond to a button event, a
Q7: Use the _ method to add a
Q8: Which of the following statements about events
Q9: Consider the following declarations: public interface Displayable<br>{<br>Void
Q10: Consider the following code snippet. public interface
Q11: If you have multiple classes in your