Solved

objects, continuing question

Posted on 2004-04-26
4
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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 “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

728 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