JLayer is a decorator for Java Swing components, often used for for painting over and catching events from subcomponents in the Swing framework.
Questions tagged [jlayer]
136 questions
1
vote
3 answers
Decorate a JComboBox editor component with a JLayer
I'd like to paint some additional information in the text field used as the default editor component of a JComboBox using a JLayer. To do this, I'd need to set the layer as the editor of the combo box through JComboBox.setEditor(ComboBoxEditor) but…

predi
- 5,528
- 32
- 60
1
vote
0 answers
getting java.lang.ClassNotFoundException: javazoom.jl.decoder.JavaLayerException on linux but works on windows
I am using JLayer to play an mp3 file
the following code works after compiling the project into a jar with the command
java - jar blahblahblah.jar
but not with linux.... any ideas? I get java.lang.ClassNotFoundException:…

user2698080
- 13
- 6
1
vote
1 answer
I follow the tutorial in oracle about JLayer but it doesn't work with this code
import java.awt.*;
import javax.swing.*;
import javax.swing.plaf.LayerUI;
public class MyJLayer extends JFrame {
public static void main(String[] args) {
MyJLayer jlayer = new MyJLayer();
…

David Wong
- 39
- 1
- 8
1
vote
1 answer
Jlayer MP3 Player, Control Volume of mp3 file in java
I need to know what should i use for controlling volume in MP3 player which I've created using jLayer? Which API or Methods I can use to control volume of mp3 file ?

Anand Chokshi
- 17
- 1
- 7
1
vote
1 answer
Blocking input to a Canvas using a JLayer
I am trying to write code which utilizes a JLayer to block events from going to the component being decorated by the layer. However, I can't figure out a way to do it.
Here is a SSCCE. It is a pastebin link because the code insertion always butchers…

Martin Tuskevicius
- 2,590
- 4
- 29
- 46
1
vote
1 answer
Android Java: decoding a mp3 file and passing data into a short[] array for analysis
I'm doing a project where I'll decode data from a mp3 file directly and store the pcm data obtained into a temporary folder, temp.pcm in the sdcard for later analysis. I'm having trouble decoding the data....
//a short array to store raw pcm…

Jeany
- 37
- 1
- 7
1
vote
0 answers
JLayer decoder for mp3 stream and AudioTrack playback
After trying a lort of things to play and mp3 from a server (not using MediaPlayer because of latency issues) i have come to a piece of code that is almost working.
I get the stream from the server with an Async task, then feed it to jLayer's…

Juan Carlos Ospina Gonzalez
- 4,153
- 3
- 34
- 43
1
vote
1 answer
Playing multiple sounds and controlling the volume using java
I'm writing an application which plays multiple sounds concurrently, each sound needs to be played at a different volume. Once a sound is playing I never need to change its volume, which may simplify things somewhat. I cannot find a good way to do…

Martin
- 12,469
- 13
- 64
- 128
1
vote
1 answer
Zooming JLayeredPane via JLayer and the LayerUI
It's been suggested on this Stack Overflow question that the best way to implement zooming in Swing applications is via the JLayer decorators provided with Java 7.
I've been following the Oracle tutorial and think the best way to do this is by…

Sarah Tattersall
- 1,275
- 2
- 21
- 32
1
vote
0 answers
Efficient way to color image regions with transparent overlay from a map of [1,0]
I avoided the word bitmap in the title as bitmap in this context usually (?) refers to the bitmap from the underlying image.
I have an image that is segmented into a number of different regions. For each region I have a map of ones and zeros (a…

Snail
- 467
- 2
- 7
- 20
1
vote
1 answer
Decode mp3 to pcm, and play with audiotrack in Google Android
First of all, if not using function decode_path , I can play .wav file with my code , and it works fine I use Jlayer and audio track to play the song.
Second, if I use function decode_path it can decode mp3 to pcm file , and pass the byte[] to…

Ashton
- 2,425
- 2
- 22
- 26
1
vote
1 answer
JLayer pause and resume
I just started using the Jlayer library to play MP3s. It works perfectly and I can play the song. My only problem is implementing pause and resume methods. With my limited amount of knowledge about multithreading, I though that making the thread…

amb110395
- 1,545
- 13
- 16
1
vote
2 answers
Java jLayer application freezes while playing song
I have a problem with jLayer. I have a button with code for starting a song:
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
try {
Player prehravac;
FileInputStream buff = new…

Mirek Mareš
- 107
- 1
- 4
- 10
1
vote
2 answers
Loop background music in Java using JLayer
I'm trying to add background music to my game using JLayer.
How can I to set it to play in a loop?
http://www.javazoom.net/javalayer/javalayer.html
BackgroundMusic bm = new BackgroundMusic("music.mp3");
bm.start();

user2287319
- 45
- 1
- 3
1
vote
1 answer
jlayer increasing size of file when convert .mp3 file to .wav file
I am using jlayer to convert mp3 file to wav format. The code is working good but the size of wav file is increased about 5 times the size of mp3 file. For converting i have used the jar file provided by the jlayer.
Anyone please tell how to…

java dev
- 1,044
- 1
- 11
- 17