This is really my first attempt at making a Java applet. I am trying to create an MP3 player sort of thing. I have heard of, but don’t quite understand the double buffering technique (painting to a temp image and then painting that image to the user). I copied an example from another page that used double buffering, but it still flickers a lot.
The basic way I am creating this applet is by making a GUI layout in Gimp and painting that as the background. Then I am placing various components over this. The picture at the very top will be some kind of title image. The Coldplay image on the left will be the CD image of the song currently playing.
If anyone has any other advice I would really appreciate it. This is really the first “advanced” Java GUI I have ever made (besides using the normal buttons and other widgets that Java natively provides).
Also if anyone has any advice for playing MP3’s or audio (besides simple .au audio clips) I would be incredibly grateful. I was really hoping I could find something simple like a class where I could pass to the constructor the name and location of an MP3 file and then say object.play() or object.pause() but I haven’t been able to find anything this simple. Any ideas?
Here’s my source code and pictures.