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
0
votes
1 answer

Zoom on a JScrollPane with headers

I hava a JFrame containing a table with row and column headers. My table is a custom component made of 3 panels (row header, column header and grid). The panels are regular JPanels, containing either JButton or JLabel, in a MigLayout. I display this…
jhamon
  • 3,603
  • 4
  • 26
  • 37
0
votes
1 answer

Get decoded byte stream from MP3 file

I want to do the FFT on a MP3 file. For this, I would like to extract the decoded byte stream from this file format (I believe it is called the raw PCM data).For this task I am using the jLayer 1.0.1 library. Here the code that should extract the…
mr.M
  • 851
  • 6
  • 23
  • 41
0
votes
1 answer

My .jar file won't open MP3 files (I'm using Jlayer - JZoom library)

I did this small Java project that in it's turn opens different MP3 files. For that I downloaded the JLayer 1.0.1 library and added it to my project. I also added the MP3 files to a package on my project -as well as some JPG images- so as to obtain…
0
votes
2 answers

Adjusting Volume using JLayer

me and a friend are programming a MP3 Player as a schoolproject. We are nearly finished and now stuck at the point where we try to programm a function to change the volume of the player. We are using: AudioDevice AdvancedPlayer I know someone…
Timothy
  • 608
  • 3
  • 10
  • 24
0
votes
1 answer

How to make a ChangeListener with a JSlider to control Volume

im trying to make a changelistener that controls the volume of a music player, problem is i get a cannot find symbol error on the changelistener, is there an import i am missing or what. any information could help JSlider vol = new…
Hunter
  • 1
  • 2
0
votes
1 answer

Alternate for JLayer in JRE6?

I am creating an application in Java and for some reasons, I have to target the Java 6. And I really liked the JLayer functionality, but unfortunately it was added in Java 7. So, is there any alternate for JLayer in Java 6? Can I use JLayer source…
Akshat
  • 720
  • 9
  • 24
0
votes
2 answers

jlayer.javazoom player can not stop mp3

How to stop MP3 in jlayer? (the stop() is no longer used) My code as follows: //main class mp3_main private AdvancedPlayer player; public static void main(String[] args) { String file="C:\\cd.mp3"; mp3PlayerSample mp3 = new…
yc tai
  • 1
  • 1
  • 1
0
votes
1 answer

Layering Panels in Java for Game/Simulation type Application

I am trying to create simulation type application, within my JFrame I want to create two layers one for the background which is drawn once and remains the same, the top layer takes care of all the animations and active objects apart from them it is…
Random_Guy_a
  • 107
  • 1
  • 2
  • 11
0
votes
1 answer

Java Swing Worker not stopping

I am building an application using Java swing. The application basically grabs police radio streams from Broadcastify website and plays them. The application at the minute has two buttons: "Chicago Police", "Chicago Fire and EMS". When the Chicago…
user3080860
  • 3
  • 1
  • 3
0
votes
2 answers

Use JLayer to play mp3 resource

I am trying to use JLayer to play an mp3. The file is in my jar, but I can't figure out how to make it play. How would I give my app the path of the mp3 file in the same package as my classes? Here is my code: File file = new…
Noodly_Doodly
  • 69
  • 2
  • 11
0
votes
1 answer

JLayer Player overwrites refesh of SWT widgets when placed in a loop

I am attempting to make an application that retrieves images and .mp3 files and transitions from one image to the next once the audio has finished. The underlying framework of how I transition between these images is a little convoluted, but I have…
Jimmy Pruitt
  • 223
  • 1
  • 9
0
votes
1 answer

How to have lyrics highlighted as mp3 file plays (like karaoke) using JLayer

I have created a media player in Java using JLayer, and it accepts mp3 files. I also have the lyrics to a specific song appear once the user plays that song, but now I want to somehow highlight or change the text color of the lyrics as they are…
user3078608
  • 103
  • 1
  • 5
  • 15
0
votes
1 answer

Jlayer in a Jpanel with circular loading bar

here is my exemple of making a circular loading bar with Jlayer but now the layer start and stop after the execution of the btnLoad.addActionListener() and stop after a while of determinated timer (4000) so my problem that I need it to start when I…
tios646
  • 5
  • 4
0
votes
0 answers

Strange error when loading MP3 on OSX

I'm using tritonus, mp3spi, and jl1.0.1 . When I try and debug OR run in Eclipse (OSX) it throws a NullPointerException. But on Windows it works just fine. Any advice? I'd love to get this working to develop cross-platform. The part that makes it…
0
votes
1 answer

Playing PCm data in audiotrack

I decoded the mp3 using jLayer lib when i tried to play the pcm data through audiotrack is giving lot of audio distortion. my decoder code: public static void decode(String path, int startMs, int maxMs) throws IOException { …