Java AWT Question and Answers

21. What are the types of checkboxes?
  Java supports two types of checkboxes. They are
  • Exclusive and
  • Non exclusive
 
Your Name Your Email-ID
Your Answer
22. What is the difference between exclusive and non exclusive?
 
  • Exclusive: Only one among a group of items can be selected at a time. If an item from the group is selected, the checkbox currently checked is deselected and the new selection is highlighted. The exclusive Checkboxes are also called as Radio buttons.
  • Non Exclusive: Checkboxes are not grouped together and each one can be selected of the other.
 
Your Name Your Email-ID
Your Answer
23. What is paint method?
 
  • The AWT uses a Callback mechanism for painting which is the same for heavyweight and lightweight components.
 
Your Name Your Email-ID
Your Answer
24. What is the purpose of repaint method?
  repaint() requests can erase and redraw (update) after a small time display. When you invoke repaint().
 
Your Name Your Email-ID
Your Answer
12345678910 Page 6 of 10