top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In a container there are 5 components. I want to display all the component names, how can I do that?

0 votes
398 views
In a container there are 5 components. I want to display all the component names, how can I do that?
posted Sep 2, 2015 by Karthick.c

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Component components[]=container.getComponents();
for (int i = 0; i < 5; i++) {
System.out.println(components[i].getClass().getName());
System.out.println(components[i].getName());
}

answer Sep 3, 2015 by J Twinkle Samson
Similar Questions
+1 vote

If a column contains data like
rahul,rajesh,madhusudhan,seerat,pradeep,bhaskaran these are the names.

I want to place these names separated by commas in another columns how can I do this?

+1 vote

want to start a blog in word press? please guide me and want to manage my blog in finance related awareness, please guide me or any one to work for the same.

...