so I'm making the "Simon game" and I need a java code to pause the program for 0.5 sec to show to the user the buttons he needs to press on.
greenButton.setBackground(Color.GREEN);
//need to stop here
press = true;
Thread.sleep(500);
For more info, see this