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
How to make a JFrame blurred in java?
In my java program, when the user clicks on a button in the main JFrame another JFrame becomes visible on top of the main frame. Now how to make the previous frame blurred?
Exactly like the background in the image :

Soheil
- 1,676
- 7
- 34
- 65
1
vote
1 answer
Slow MP3 decoding on Android using jlayer
It require 1 minute to decode 10 seconds, how can I decode the MP3 faster?
public static byte[] decode(String path, int startMs, int maxMs) throws FileNotFoundException
{
float totalMs = 0;
ByteArrayOutputStream os = new…

LK Yeung
- 3,462
- 5
- 26
- 39
1
vote
1 answer
Loading an mp3 file with JLayer from inside the Jar
I want to load an mp3 file from inside the jar file itself and then play it with JLayer. When I try to do it, I either get a NullPointerException or a FileNotFoundException. Any idea on how to fix this?
//MP3Player.java
package Music;
import…

Tikitaco
- 69
- 7
1
vote
2 answers
LayerUI, g.drawImage underlined
public class GraphicsBoard extends LayerUI {
String picPath = "pictures/";
String[] fileName = { "cards.png", "BlackJackBoard.png" };
ClassLoader cl = GraphicsBoard.class.getClassLoader();
URL imgURL[] = new URL[2];
Toolkit tk =…

Exikle
- 1,155
- 2
- 18
- 42
1
vote
0 answers
Change playback speed with JavaZoom JLayer
I am using JLayer sound framework to play wav files with basic functionality (seek,play/pause/stop), I need now to also allow playback speed changes.
Does anyone know if JLayer allows this functionality (I have looked everywhere and I cant find…

RicardoDuarte
- 728
- 7
- 23
1
vote
1 answer
Introducing JLayeredPane to an existing JFrame
I've been staring at Oracle's JLayeredPane tutorials but they are laid out in a manner that is confusing to me and doesn't get at what I am trying to do.
I have an application that up to now has had no concept of layers. Everything is laid out in a…

Steve Cohen
- 4,679
- 9
- 51
- 89
1
vote
1 answer
can't make the Jlayer change position with the scrollpane
I'm having a jlayer decorationg a panel that is added on a jscrollpane. When i scroll down, the panel components gets scrolled in the right way but i can't make my jlayer move with it.
Any ideas on how to do so?
jlayer = new…

user1436818
- 21
- 2
1
vote
2 answers
Specifying start/stop time in millisecs when playing MP3 using JLayer
I need to play a part of an MP3 file in my java code. I wish to do this via a function which accepts the start and stop time in millisecs.
JLayer contains a class called AdvancedPlayer which has a method that accepts the start and stop position in…

William
- 13,332
- 13
- 60
- 73
0
votes
2 answers
How to pre-buffer an MP3 file completely in Java
I'm working on a music player, which receives a playlist with remote mp3 files (HTTP) and play them subsequently.
I want to have it start streaming the first track, if enough of the song is buffered to play it through, it should already begin to…

nanoman
- 1,069
- 12
- 27
0
votes
1 answer
Using jlayer/javazoom, or vlcj to playback audio (MPEG4, RAW AMR, or THREE GPP)
Can jlayer/javazoom, or vlcj playback MPEG4, RAW AMR, or THREE GPP?
I have searched, and I cannot find how to correctly use the players, or whether they even support playback of these file formats. Are there any other players that can playback these…

Mark
- 700
- 2
- 7
- 17
0
votes
1 answer
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 extends JFrame
{
TestFrame()
{
…

Ashan
- 59
- 6
0
votes
1 answer
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 extends Thread {
private Player player;
private…

brokers125
- 11
- 1
0
votes
0 answers
Is there a way to draw a fixed rectangle on a JScrollPane?
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 achieve this however, I've been unable to make the…

asdf
- 1
- 1
0
votes
0 answers
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:
I have a test case that blurs the main window…

MiguelMunoz
- 4,548
- 3
- 34
- 51
0
votes
1 answer
Set of questions related to playing sound / video in java
There are some set of questions i wanted to ask related to Java Sound which are as follows :
Can i use xuggler with netbeans ?
If yes can anyone please tell the way out ?
What are the audio and video formats xuggler is able to decode
Is xuggler the…

program-o-steve
- 2,630
- 15
- 48
- 67