Java Awt Part I

 

Java AWT

1.      What is meant by Controls and what are different types of controls? -

2.      Which method of the component class is used to set the position and the size of a component?

  1. Which TextComponent method is used to set a TextComponent to the read-only state?
  2. How can the Checkbox class be used to create a radio button?
  3. What methods are used to get and set the text label displayed by a Button object?
  4. What is the difference between a Choice and a List?
  5. What is the difference between a Scollbar and a Scrollpane?
  6. Which are true about the Container class?
  7. Suppose a Panel is added to a Frame and a Button is added to the Panel. If the Frame’s font is set to 12-point TimesRoman, the Panel’s font is set to 10-point TimesRoman, and the Button’s font is not set, what font will be used to display the Button’s label?
  8. What are the subclasses of the Container class?
  9. Which object is needed to group Checkboxes to make them exclusive? -
  10. What are the types of Checkboxes and what is the difference between them?

13.  What is a Layout Manager and what are the different Layout Managers available in java.awt and what is the default Layout manager for the panel and the panel subclasses? -

  1. Can I add the same component to more than one container?
  2. How can we create a borderless window? -
  3. Can I create a non-resizable windows? If so, how?
  4. Which containers use a BorderLayout as their default layout? Which containers use a FlowLayout as their default layout?
  5. How do you change the current layout manager for a container?
  6. What is the difference between a MenuItem and a CheckboxMenuItem?-