Panel - Definition - AWT and Swing

Q.  Which is the container that doesn't contain title bar and MenuBars but it can have other components like button, textfield etc?
- Published on 19 Oct 15

a. Window
b. Frame
c. Panel
d. Container

ANSWER: Panel
 

    Discussion

  • Nirja Shah   -Posted on 15 Dec 15
    Container
    - It is a component in AWT that can contain another components like buttons, textfields, labels etc.
    - The classes that extends Container class are known as container such as Frame, Dialog and Panel.

    Window
    - It is the container that have no borders and menu bars.
    - Different frame,dialog or window should be used for creating a window.

    Panel
    - It is the container that doesn't contain title bar and menu bars.
    - They consist of other components like button, textfield etc.

    Frame
    - It is the container that contain title bar and can have menu bars.
    - They consist of other components like button, textfield etc.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)