Solved

objects, continuing question

Posted on 2004-04-26
4
155 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 87
Chrome and Firefox Java 5 88
Eclipse with various Java releases 7 85
maximize the sum of fractions 33 74
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
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 will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Suggested Courses

732 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