Hey guys, I was doing some programming in my platform game and I noticed text in my JOptionPane would appear only on the left corner of the messageblock. Any chance there's a way to place it in the middle? I'm using this code:
JOptionPane.showMessageDialog(null, "YOU WIN!\nYour score:" + SCORE.score + "\nCurrent highscore:" + SCORE.highscore, "CONGRATULATIONS", JOptionPane.PLAIN_MESSAGE);