Solved

About setting up some code.

Posted on 2004-04-29
7
137 Views
Last Modified: 2010-03-31
objects, I am now wondering if only the workout audio files should go into the list and after the list is complete and the user submits it, then ahe list is gone through and all timing files are added at that time.  That way it won't matter when the user presses the timing cycle button. At the time the user submits it, code can check to make sure a timing cycle button was pressed and if not get on pressed before going on.

Let me know if you think this is a better way of doing it?  I think it is now after all the stuff I have put you guys through.
0
Comment
Question by:Drop_of_Rain
  • 4
  • 3
7 Comments
 
LVL 92

Expert Comment

by:objects
ID: 10956094
> I am now wondering if only the workout audio files should go into the list

I suggested that possibility in your previous q :)

0
 

Author Comment

by:Drop_of_Rain
ID: 10956126
You have said that long ago, but I had to understand why it didn't have to happen the way I thought it had to. I had seen it being used in one way, and got stuck seeing it that way. I'm sorry for not following your wisdom, but needed to go through this.

Do you have any suggestions?

0
 
LVL 92

Expert Comment

by:objects
ID: 10956157
i mentioned a couple of q's ago that it sounded like you could get rid of the AudioDetails class altogether, and just store the audio name string in the list. But I'm still not 100% clear on your requirements cannot be totally sure this approach would achieve your goals.

It would be so much easier to help u implement this if you wrote a functional spec *before* trying to implement it :)
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:Drop_of_Rain
ID: 10956249
<<<It would be so much easier to help u implement this if you wrote a functional spec *before* trying to implement it :)>>>

I have never written one of these before I hope this is what you are asking for

User opens make a custom workout section.

1. All sections of workout buttons are in the frame.
2.The user can choose any order they want to. (Press any button order)
3. Every button pressed needs to be recorded.
3.A list needs as the buttons are pressed.
4,The user needs to be able to unchoose a selection and it is removed from the list
5.That unchoose  selection is removed from the list but not effecting anything else.
6.The user has to submit the workout for processing.
7.A timing cycle must have to been pressed before the submitting can happen.
8.If not a dislog tells them they have to choose one.
9.After one is choosen the list can be submitted.
9a. The user names the workout.
10.All componants are set to clear or back to default.
11.The list is gone through one item at a time and checked againist some conditionals.
12.The choosen timing cycle audiofiles is placed in the list after each item.
13.If the item fits a conditional the timing audiofile is replaced with the proper one.
14.After all timing files are entered into the list the list will be passed to another class.
15.The new class will turn all the audiofiles into streams into a new list.
16.Those streams will be passed to another class.
17.That class will make a single audiofile from the streams.
17.A temp file will be made for backup.
0
 

Author Comment

by:Drop_of_Rain
ID: 10956282
Correction

3a.A list needs to be made as the buttons are pressed.
0
 
LVL 92

Accepted Solution

by:
objects earned 250 total points
ID: 10956294
sounds like AudioDetails is not needed, and you just need a list of strings.
0
 

Author Comment

by:Drop_of_Rain
ID: 10956325
The strings will be the file names? All the audiofiles will all be stored in a directory name Audio in the root directory. You said to put all the audiofiles in the same directory then a directory would not have to be in the ActionCommand.

 Is that correct?

How does it know where the audiofiles are?

Is a directory setup somehow?

0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
servlet doXXX methods 3 49
JavaFX TableView not displaying correctly 3 18
Crystal Reports Licensing Questions 4 12
Html Table Looping (part 2) 5 7
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

809 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