Showing posts with label LEBELS. Show all posts
Showing posts with label LEBELS. Show all posts

Monday, 3 March 2014

USING AWT CONTROLS,LAYOUT MANAGERS,AND MENUS

CONTROL FUNDAMENTALS IN JAVA

What are the different  types of AWT support  control fundamentals in java..........

The AWT supports the following types of controls:-
  • Labels
  • Push buttons
  • Check boxes
  • Choice lists
  • Lists
  • Scroll bars
  • Text editing
ADDING AND REMOVING CONTROLS:

To include a control in a window, you must add it to the window. To do this, you must first create an instance of the desired control and then add it to a window by calling add( ), which is defined by Container. 

The add( ) method has several forms


Component add(Component compObj)