objects, continuing question

If Mylistener is used in each class that makes up ever button panel for the custom section of the program, will all the actioncommands, be able to go to a single arraylist at that point using the AudioDetails class.

public class AudioDetails
{
   private String AudioFile;
   private String Timing;
   // could add other fields as needed

   public AudioDetails(String file, String timing)
   {
      AudioFile = file;
      Timing = timing;
   }

   public String getAudioFile()
   {
      return AudioFile;
   }

   public String getTiming()
   {
      return Timing;
   }
}
Drop_of_RainAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
objectsConnect With a Mentor Commented:
yes, the MyListener class creates a list of AudioDetails objects.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Can't understand your question completely (you didn't give a link to the previous question), but I guess that if every button has a listener, why won't the action command go when there's an event?

BTW, what kind of listener is MyListener, and does it listen to some events on the Panel?
0
 
Drop_of_RainAuthor Commented:
If this is true, would this be the time for me to ask the question about the if statement doing the comparisons in that other if question "Help with a If statement" that is still open.
0
 
objectsCommented:
No from my understanding you'll need to deal with that once you decide to process that list.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.