Java AWT Question and Answers
37. | What is the difference between the Font and FontMetrics classes? |
---|---|
The FontMetrics class is used to define implementation specific properties such as ascent and descent, of a Font object. | |
38. | Explain the use of update method? |
---|---|
|
|
39. | Which containers use a FlowLayout as their default layout? |
---|---|
The Panel and the Applet classes use the Flow Layout as their default layout. | |
40. | What are the subclass of textcomponent class? |
---|---|
TextField and TextArea | |