Well, you could do that- create a class that implements Runnable and start it in its own Thread. OR- you could use a javax.swing.Timer. Once you implement the ActionListener, all you have to do is call timer.start();

Interesting........so I guess that would simply mean to have a songSlider.setvalue() call inside the timer? And tie the action listener to the play/double click. This helps me understand a lot, thanks (unless I'm wrong). I'll see what I can put together tomorrow to test. I might be the first person to post working code here for a working song slider.

Interesting........so I guess that would simply mean to have a songSlider.setvalue() call inside the timer? And tie the action listener to the play/double click. This helps me understand a lot, thanks (unless I'm wrong). I'll see what I can put together tomorrow to test. I might be the first person to post working code here for a working song slider.

You might be the first to post it, but not the first to do it.

Anyhow, the ActionListener in the timer will be called by the timer tick events, ie- every n milliseconds until timer.stop() is called. ActionListeners are notified on the EDT, so you can be sure that you are updating the slider position on the correct thread. So, you'll want to start the timer when the song begins to play, and stop the timer when you stop the song. You may want to stop it when you drag the slider as well, but I'm not sure if that is necessary (it's been a while).

I still have some issues with moving the slider around a lot and there's still a lag if I move it far ahead but I'll be looking into it a little further this afternoon. Thanks for your help and let me know if I've done it right!

^^^wtf?
Java has something called layout managers that handle these things.

Yes, layout managers are good to keep, well, a layout.
You would still want to define sizes and coordinates as percentages. What good is to have a big 4x4 grid with a very small button inside each cell. Make the button size and position relative to the panel size. That way, the bigger the screen, the bigger the content.

Check out gridlayout- it does exactly what you describe. Lay out a grid of buttons and they grow or shrink with the container.

yes, layout managers are a must. Im just referring to the actual content inside the layout.
Take for example having some text. I might want to make the text relative to the screen size. If I define the text size as a percentage of the total size, I can resize the screen to any size and the aspect ratio will be maintained.

Its not a big deal, I just hate web pages that only use a fixed size of my 1920x1200 screen, and winforms that cant be resized, and winforms that break when using large DPIs ...... (im old)