ronald deux

Ranch Hand
+ Follow
since Sep 22, 2019
Cows and Likes
Cows
Total received
1
In last 30 days
1
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ronald deux

I managed to make a simple progress bar
For the circular progress bar, I come to try New Thread
(New Runnable () {}, I hear the music play at the same time
3 days ago




Hello

 I try to move this circular progress bar using the Corey code on Hashmap Sound
she does not move but we hear the music well
Thank you for your help
4 days ago
I think put a number one song as a key
I try to reflech to your question
I hope to have answered
1 week ago
The goal of hashmap is to have a collection with a key to its value
As it works by key, I thought to make a scanner associated with the key and playing music, it's just an idea
Is this feasible? I do not know
no i did not abandon my jtable
I am looking for ideas to operate each progress bar associated with the duration of the song
1 week ago
A question comes to mind
For sounds, it must be used Hashmap or Hashtable?
what is better?
1 week ago
To answer a rob, yes it works with thread.sleep, was enough to move it
As the song lasts 16 seconds, I made thread.sleep (16000)

And to answer Corey, it's a bit of what I was looking for, a song after another, I just tested your code, it works perfectly well
if I understood correctly, must close the first song to go to the next
I will try to test it with the jprogressbar
1 week ago
I put println on line 21 and adds "sounds \\" + filename
It shows the 3 songs in my folder
but no sound for now
1 week ago


I have typed the names of the files and well placed in the SoundS folder
I always have the same mistake
I have changed file name
1 week ago




I found a code on Stack Over Flow, I do not know if it works
I adapt it to my way

but there is always this file error not found like I explained in the Jtable Jprogressbar topic


Exception in thread "main" java.io.FileNotFoundException: 60s rock beat.wav (Le fichier spécifié est introuvable)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:153)
at java.desktop/com.sun.media.sound.SunFileReader.getAudioInputStream(SunFileReader.java:117)
at java.desktop/javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1062)
at HashMap01.main(HashMap01.java:22)

1 week ago


I give you all the code
I'm having fun, it's a bit of the disorder
I will arrange after
it's bizarre I always have the same error
1 week ago


Exception in thread "main" java.io.FileNotFoundException: 60s rock beat.wav (Le fichier spécifié est introuvable)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:211)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:153)
at java.desktop/com.sun.media.sound.SunFileReader.getAudioInputStream(SunFileReader.java:117)
at java.desktop/javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1062)
at JTableTest.main(JTableTest.java:54)


I found a piece of code
I modified it a little, I hope I have not made an error
I do not understand the error
Yet i have the 60s rock beat.wav file in my folder
line 54 is line 8
1 week ago
I do not know
sorry
1 week ago
What code are you talking about?
That of JProgressBar07 or JTable09?
1 week ago
Have you managed to play music with file [] Listfiles or the first lines of the first column with 3 songs or more?
1 week ago
now I will try to play 3 songs
one after the other as the progress bars
I think I do a for loop of songs, I do not know if it's a good idea
1 week ago