I have a Jframe in netbeans with 5 buttons, named buttons 1, 2, 3, 4, and 5. I'm trying to make it so if the buttons are pressed in this order 4, 2, 3, 1, it will display a dialogue box. My only problem is getting it to recognize the buttons have been pressed in the correct order. I have a Jframe in netbeans with 5 buttons, nam