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
3
votes
0 answers

Javazoom BasicPlayer: Seeking with inputstreams

I'm developing a programm that streams music from the internet. When i stream a song, i don't have access to it's URL. I only get an input stream and some information like length in bytes and so forth. I want to implement a seekbar similar to those…
user778440
  • 31
  • 4
3
votes
2 answers

pausing mp3 in java

I'm currently working on a project in which i need to play a background mp3 sound. I managed to do that using the Jlayer library and a piece of code found here However, I needed to add some more features to this code, such as loop playing and…
Aserre
  • 4,916
  • 5
  • 33
  • 56
3
votes
1 answer

Decorating a rollover toolbar button with JLayer paints its border

I'm attempting to wrap a JButton with a JLayer to add some effects/functionality to it. When I replace the button with the wrapper in a toolbar, it paints a button border for some reason. The toolbar has rollover set to true. Why is this happening…
predi
  • 5,528
  • 32
  • 60
3
votes
1 answer

Changing Volume with JLayer

I have a very specific problem with JLayer in my Music-Player project. I want to include something to adjust the volume, but it seems it isn't that easy to implement. This is because JLayer isn't supporting it from itself. I excluded the Player…
Schesam
  • 583
  • 5
  • 19
3
votes
4 answers

MP3 Compression i.e converting mp3 file from 256kbps to 128kbps in java

i want to achieve mp3 compression.. it means i want to convert a 256kbps mp3 file into a 128 or even 64kbps mp3 file using java programming language.. is it possible using JLayer..? how do i do it..? A code snippet would be useful
veenit33
  • 79
  • 2
  • 8
3
votes
2 answers

How do I import these Java classes I downloaded?

I'm a beginner in programming and I need to know how to import classes I got from the Internet to my text file. I downloaded JLayer for use in writing an MP3 player, but typing import javazoom.jl.player.Player; won't work, unlike the basic import…
3
votes
2 answers

convert a java project (I used in it JLayer 1.0.1 to play mp3) to a runnable jar file

I built a java project and I used (JLayer 1.0.1) to play mp3 audio. when I test my project with eclipce I find that it worked correctly 100% and the JLayer 1.0.1 libraries play my mp3 files efficiently. but when I convert it into a runnable jar file…
Wazani
  • 911
  • 1
  • 13
  • 28
3
votes
1 answer

Decoding MP3 files with JLayer

I want to use JLayer to decode an MP3 file. I have searched and searched for documentation and examples on how exactly to do this, and have turned up nothing of use. Everything I find is embedded in other examples or references JavaSound, which is…
Albatross
  • 71
  • 1
  • 6
2
votes
1 answer

Playing multiple MP3 tracks in different threads

I am trying to run 4 MP3 tracks at the same time in different threads. I am using the JLayer1.0 MP3 library to play the MP3s. Given that I cannot control when the threads will start, I am using a CountDownLatch to at least get them to run at the…
Samuel Heaney
  • 773
  • 1
  • 8
  • 14
2
votes
1 answer

Component layering Java Swing, Layers showing on hover

I have two JPanels layered on top of each other in the same container. I am using container.add(jpanel, 0); and container.add(otherjpanel, 1). It works fine however in order for the top layer to show I have to hover over the components with the…
user541597
  • 4,247
  • 11
  • 59
  • 87
2
votes
1 answer

Jar with compressed music with java?

I've tried to add music to an application I've made. First I tried with .wav files though they became so huge that the application became too large to upload anywhere. So I changed the files to .mp3, tried JMF and JLayer though both of them won't…
Skarion
  • 43
  • 5
2
votes
1 answer

Mapping mouse event coordinates

I've implemented a JLayer component which paint a zoomed Graphics of itself, so all his descending components will be zoomed too. This JLayer is applied as ContentPane to a JFrame component. The main problem is that all the zoom applies,…
Schizoping
  • 137
  • 10
2
votes
3 answers

JPanel on top of another JPanel

I have been using JPanels for a while and now want to place a JPanel on top of another JPanel. I have looked at using JLayer but I was wondering If there is a solution to just set the layer of the bottom and top, I don't want to set each components…
user5380876
2
votes
1 answer

Play java mp3s simultaneously at different volumes

I am using JLayer to play my sounds in my game. I am trying to set independent volume levels for my music (constantly playing) and sound effects (sporadic). Right now my code changes the master volume level so, as expected, it changes the volume…
KisnardOnline
  • 653
  • 4
  • 16
  • 42
2
votes
0 answers

Problems with adding JPanel into JLayer

I am currently working on a Java Swing application. I want to use a JLayer to decorate a JPanel but get stuck. Now I am going to add a JTextArea into a JPanel and then add the JPanel into a JLayer, and finally into a JScrollPane. A JPanel is a must…
tonychow0929
  • 458
  • 4
  • 10
1
2
3
9 10