I would like to create a sort of drop down list (JComboBox?) that will look/act like a JButton. That is when the item is selected it will close the dialog and act on the selection. I have a vague idea how to accomplish this with a MouseListener but I can't completely see the whole picture. I'm not even sure if a MouseListener is the right approach. I could create a different JButton for each delay but I'm wondering if there is a more elegant way.
The purpose of the JDialog is to ask the user to have the application take a certain action immediately or re-prompt for that action after 5, 10 or 15 minutes. Many applications I've used, such as software updates that might require a reboot, have such a "button" to re-prompt after some specific time selected via the "button."
I would appreciate any ideas on how to accomplish this, if possible.