top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

0 votes
43 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 Google+ Share Button LinkedIn Share Button Multiple Social 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.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...