Solved

objects, continuing question

Posted on 2004-04-26
4
152 Views
Last Modified: 2010-03-31
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;
   }
}
0
Comment
Question by:Drop_of_Rain
  • 2
4 Comments
 
LVL 30

Expert Comment

by:Mayank S
ID: 10925386
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
 
LVL 92

Accepted Solution

by:
objects earned 300 total points
ID: 10925401
yes, the MyListener class creates a list of AudioDetails objects.
0
 

Author Comment

by:Drop_of_Rain
ID: 10925480
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
 
LVL 92

Expert Comment

by:objects
ID: 10925491
No from my understanding you'll need to deal with that once you decide to process that list.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now