Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Mada Akhtar   on Apr 04 In Java Category.

  
Question Answered By: Calvin Banks   on Apr 04

use one of the following methods:

1) use an string with an index  for your component  names (like label1 , label2, label3) and then use introspection.

2) put your components in an collection (for example an Array) then iterate over collection content and do what ever you want with them

3) use your parent component (form, dialog) getChildren to get collection of components, and then iterate over them

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on multi swing component Or get search suggestion and latest updates.


Tagged: