I would like to reset my Swing application. For example I have a game application and I want to reset the points and start the game like the beginning. I mean I would like Java version of Javascript code below. How can we do this? Thanks:
window.location.reload(true);