Hi, I am trying to display checkbox(s), and text field(s) and a button based on the number of files in a Directory. For example I want 3 Checkboxes(with the lable of the file name) and 3 text boxes with a Button if there are 3 files in the directory.
I have achieved to do this by using the following code,
What I fail to know is adding a diferent actionlistener to every differerent component. I have added the action listener to the components, but they call the same action performed method. (I do know that ActionListener fires the ActionPerformed method, but I want every component to do something else)
Eventually I want to take the file name and the number of records from each file; and then to display in the text area.
Any help on adding a different action listener?
I have achieved to do this by using the following code,
What I fail to know is adding a diferent actionlistener to every differerent component. I have added the action listener to the components, but they call the same action performed method. (I do know that ActionListener fires the ActionPerformed method, but I want every component to do something else)
Eventually I want to take the file name and the number of records from each file; and then to display in the text area.
Any help on adding a different action listener?