To do this, you need to create a boolean variable 'Play', for example, that is going to be set on TRUE when the song is playing and when you press the Pause button, this will be set on FALSE. By using such a variable, you will be able to create a function that can remember the location in which you paused the song. There are plenty of examples over Internet about this subject. If you need additional help with your application, it might be a good idea to start your search on the following official Netbeans forum. Also, you can use Google to find other sources.