138 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
70
views
How to get current frame of a player in JLayer? Implementing `pause()` method
I'm trying to write a mp3 player in java.
I want to implement the pause() method, which stores the frame that the player (AdvancedPlayer) has stopped. The the resume() method starts the player from ...
1
vote
0
answers
47
views
Java JLayer: Problem with implementing Pausable Player
I am trying to implement and use a Pausable Player object based on the Advanced Player jlayer package. I am using the implementation found in this thread:
https://stackoverflow.com/questions/12057214/...
0
votes
1
answer
74
views
Synthetica look and feel throws a class cast exception when using JLayer with JscrollPane with Java 11
Synthetica look and feel throws a class cast exception when using JLayer with JscrollPane with Java 11. It works fine with Java 8. Is there a way to fix this?
Code example
public class TestFrame ...
0
votes
1
answer
126
views
Cannot play the sound of music with no error for Java
I am trying to run the music that I have, but it does not work. There is no error showing up in the eclipse any more, but the sound is not played. This is my code that I have
public class Music ...
0
votes
0
answers
47
views
Is there a way to draw a fixed rectangle on a JScrollPane? [duplicate]
I'm trying to draw a stationary rectangle on top of a JScrollPane. This would look similar to freezing the first row in Microsoft excel and scrolling down. I tried using a JLayer and LayerUI to ...
1
vote
0
answers
54
views
Why JLayer Music can't play in Jar file?
This code can play in Eclipse Debug, but Can't play on Jar file.
this is a code.
this is my Main class.
Music lobby = new Music("LOBBY.mp3", true);
lobby.start();
Can music files be used ...
0
votes
0
answers
112
views
Serious Performance issue using JLayer drawing with AquaLookAndFeel
I'm having a serious performance issue using a JLayer to do special drawing, but only under the AquaLookAndFeel on Macintosh. Using any other look and feel, the performance is fine.
Here's the scoop:
...
0
votes
1
answer
147
views
JLayer sometimes unable to load resource 'sfd.ser'
I'm using jl-1.0.1 to convert mp3 files to wav files for an android app. Most of the time it works fine on my phone but occasionally I get a java.io.IOException: unable to load resource 'sfd.ser'. A ...
1
vote
1
answer
137
views
Java: Console stops working when using javazoom
When I start playing music by javazoom library, console stops answer. I can write anything, but no response.
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util....
0
votes
2
answers
4k
views
java.io.FileNotFoundException even when the file path is correct
the code that i used :
package play;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.net....
0
votes
1
answer
303
views
JLayer Change volume while playing (JavaZoom)
I build a JLayer that plays a web music stream, which works fine, except for the volume. I cant get it to change.
I already tried the following, but the volume always remains the same, no errors:
...
user avatar
user13214061
1
vote
2
answers
191
views
How do I double-buffer in Java Swing on a Retina display without losing the higher resolution?
I'm using double-buffered graphics in my JLayer subclass to implement a simple swipe animation in a Java Swing application. It works fine on the older displays, but when I run it on a Retina display, ...
0
votes
1
answer
139
views
Can't stop song because it has to end before other lines run
I just want it to be able to stop halfway through playing the song but not sure how I need to do this? Does it need to be threaded?
public class playMusic {
public static void main(String[] args)...
0
votes
2
answers
65
views
Why is this program not playing my music files?
I was trying to create a basic music player in Java using JLayer library, but it doesn't seem to work. Nothing is played when I open a file (.mp3) through JFileChooser. Below is the code for my ...
0
votes
1
answer
126
views
Java jlayer on RasberryPi
I am making a music player for rasberry pi. There is a hifiberry module connected to it. I am using a jlayer library for playing music. When i run the code on my PC (Ubuntu) it works fine, but when i ...