AWT/Swing Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 400 Page Views: 

What methods are used to get and set the text label displayed by a Button object?



Posted By: Avi Date: 8 November 2010 04:00:07 PM
 Answer:

getLabel() and setLabel()


Posted By: avibtech


Date: 8 November 2010 04:00:07 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image WgOrGy
Related Questions
AWT/Swing : What is the difference between the Font and FontMetrics classes?

What is the difference between the Font and FontMetrics classes?

The FontMetrics class is used to define implementation-specific properties, such as ascent and desce....
Category: AWT/Swing Date: 11/8/2010 6:55:07 PM
AWT/Swing : What are the features of JFC?

What are the features of JFC?

Pluggable Look-and-Feel. 2- Accessibility API. 3- Java 2D API. 4- Drag and Drop Support.
Category: AWT/Swing Date: 11/8/2010 6:23:05 PM
AWT/Swing : What interface is extended by AWT event listeners?

What interface is extended by AWT event listeners?

All AWT event listeners extend the java.util.EventListener interface.
Category: AWT/Swing Date: 11/8/2010 5:50:05 PM
AWT/Swing : What methods are used to get and set the text label displayed by a Button object?

What methods are used to get and set the text label displayed by a Button object?

getLabel() and setLabel()
Category: AWT/Swing Date: 11/8/2010 4:00:07 PM
AWT/Swing : Name two subclasses of the TextComponent class.

Name two subclasses of the TextComponent class.

TextField and TextArea.
Category: AWT/Swing Date: 11/8/2010 1:06:07 PM