Hello. I am implementing a GUI using Swing for a Java Music Player. I'd like to know if it is possible to make a time bar like the bar in WinAmp for example that can be moved to jump to a certain position in a song and shows the current position. If possible, how would one go about this?
Also, I'm using a JList to display Playlists and I'd like to know how to get double click events. I know that there are selection events, but I'd like objects in the list to be selected and start playing upon double clicks, not single clicks. I'd also like them to only be selected once, so the the event is not continuously called.
Thank you.