When a player reaches a certain actor how would I make it so that a picture would go on the screen that says :"You win!" or something along those lines. Also how would you add sound to the win message?


import javax.swing.*; JOptionPane.
if (isTouching(endobject.class) && counter==0) { JOptionPane........; counter++; }