Which Component method is used to access a component's immediate Container?

Options
- getVisible()
- getImmediate()
- getParent()
- getContainer()


CORRECT ANSWER : getParent()

Discussion Board
hello

very nice answer and detailed explanation

Archana Gavade 01-7-2015 01:39 AM

getParent()

getParent() is the component method used to access a components immediate Container. It gets the parent of this component.A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. For example: buttons, checkboxes, and scrollbars of a typical graphical user interface.

The Component class is the abstract superclass of the nonmenu-related Abstract Window Toolkit components. It can be extended directly to create a lightweight component which is associated with a native window.

Rohit Sharma 09-30-2014 05:07 PM

Write your comments


Enter the code shown above:

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


Advertisement