armsracer 0 Newbie Poster

I am making a calendar planner applet. When the user clicks on a date it displays a menu of the different activities that can be performed. Then when the user makes their decision for the activity the calendar is displayed again this time with an updated icon for that date.

I figure I can write a function that displays all the buttons. When the user selects a button it sets an integer value for the return. Then it returns an integer to be used to select an index form an array of image icons. After I finish the code for this and test it however I notice a problem where the icons are only updated form the previous selection. The program continues without waiting for user input.

Is there a way to get a JPanel to behave like a modal Dialog Box, or another way in which I can accomplish this without the use of a dialog box?