Java Swing Question and Answers
13. | 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. | |
14. | How can a GUI component handle its own events? |
---|---|
A component can handle its own events by implementing the required event listener interface and adding itself as its own event listener. | |
15. | Why swing is not thread safe? |
---|---|
|
|
16. | Name Container classes? |
---|---|
|
|