How to display names of all components in a Container?
Answer / Amit Vikram Singh
To display names of all components in a container, you can use the getComponentNames() method provided by the Container class. Here's an example:nn```javanfor (String name : container.getComponentNames()) {ntSystem.out.println(name);n}n"```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between overriding & overloading?
What is 16 bits called?
Explain the features of java?
what are depricated methods ?
What are Brief Access Specifiers and Types of Access Specifiers?
Does java allow default arguments?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
can any body tell me? does advance java and j2ee both are same.
How to make class immutable
What is a flag value?
What is stringbuffer in java?
What is independent and dependent variables in research?