Questions tagged [jlayer]

JLayer is a decorator for Java Swing components, often used for for painting over and catching events from subcomponents in the Swing framework.

136 questions
1
vote
0 answers

Java MP3SPI in Applet

I've been struggling with this for the passed few hours but perhaps you guys can give me some help. I've written an application that requires the use of MP3 files. The application runs correctly given the classpath jar files that are said to be…
user899336
  • 11
  • 2
1
vote
0 answers

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 as 'getClass().getClassLoader().getResource'? There is Full…
Sevenerz
  • 11
  • 2
1
vote
1 answer

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.Scanner; import…
1
vote
2 answers

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, the screen loses the doubled-resolution when the…
MiguelMunoz
  • 4,548
  • 3
  • 34
  • 51
1
vote
3 answers

Stop/mute playing music using JLayer

i am using jlayer to play mp3 files in my progam but in the jlayer documentation i could not find any useful info about stopping the playing music and continuing from where it was stopped. any ideas? my program is as follows: package…
temelm
  • 826
  • 4
  • 15
  • 34
1
vote
1 answer

Scrolled JLayer not behaving as a scrolled JPanel which it is supposed to replace

I'd like to decorate a JPanel with a JLayer, but am failing to understand why doing so messes up this panel being laid out inside a JScrollPane. The decorated component is supposed to act as a drop in replacement, but it does not appear to work in…
predi
  • 5,528
  • 32
  • 60
1
vote
1 answer

JLayer Synchronization

(I'm attempting to make my previous question more generic in the hopes of a solution.) I am using the JLayer library and a sample.mp3 file. I would like to play AND decode the file at the same time. However, I want them to be synchronized - if a…
Matt
  • 11
  • 2
1
vote
2 answers

Synchronizing Java Visualizer Audio and Visual

I've run into a problem creating a visualizer for .mp3 files in Java. My goal is to create a visualization that runs in time with the .mp3 file being played. I can currently visualize an .mp3 OR play it, but not both at the same time. I am using…
Matt
  • 53
  • 1
  • 2
  • 5
1
vote
1 answer

Java executable .jar file does not play MP3 file from external resource

I have a Java project in Netbeans which includes a User interface. From the interface the user can play an MP3 file that is stored in a folder "data" within the projects working directory. For playing the file I have a class that creates an MP3…
Sebastian
  • 445
  • 5
  • 20
1
vote
2 answers

Java JLayer : How to prevent delegeting events to underlying Component

Hi I just found the JLayer function. I want to use it as a wait lock. If I activate the layer the underlying component receives all events (key and mouse). How can I catch the event in the layer and prevent the delegating? thank you in…
dbausnnd
  • 59
  • 1
  • 3
1
vote
0 answers

Using an HTTPS URL or IP address doesn't work in JavaZOOM JLayer

I have used JLayer to implement this radio: public class RadioImplement { public static void main(String[] args) { try { //works fine // playRadioStream ( "http://kantipur-stream.softnep.com:7248" ); …
Bishal Gautam
  • 380
  • 3
  • 16
1
vote
2 answers

"Whiteout" entire swing GUI except from one component

[This question is in relation to this question] Setting: I have this home-crafted "editable label" component which looks like a label, but when you click it, it turns into an editable field, allowing you to edit it. You can hit Esc to cancel, or…
stolsvik
  • 5,253
  • 7
  • 43
  • 52
1
vote
0 answers

Playing streamed mp3 data repeatedly with jlayer

I am working on an mp3 streaming application in Java. The user at the server end plays a music file at the server end (although the server is just currently sending the file) and the player at the client end reads the stream and plays the music. I'm…
xabush
  • 849
  • 1
  • 13
  • 29
1
vote
3 answers

Java- How to use the library jlayer to play audio?

I am trying to use an API by JZoom called JLayer which allows one to play audio files among other things. I downloaded the JLayer 1.0.1 version. Here is the link to their website: http://www.javazoom.net/javalayer/sources.html.I have found this code…
bob sam
  • 35
  • 2
  • 6
1
vote
0 answers

JLayer mp3 playing several Songs in short time

I'm working on a small game and I have some buttons inside. I want to play a "Klick" sound every time a button gets hit. For this I'm using JLayer from JavaZoom to play the mp3 files like this: BasicPlayer player = new BasicPlayer(); …
S. We
  • 26
  • 3