I have a question regarding how someone was to make a JOptionPane.showMesageDialog(); appear within a duration of time. For example, my program is supposed to ask about the user's favorite movie, Subsequently at least 15 seconds after the user answers, my program is supposed to ask "are you there?", giving them the option of replying with Yes, no, or maybe. How exactly can I do that? (if that's possible)
here's my code
```
if (null==moviename|| moviename.trim().isEmpty()) {
JOptionPane.showMessageDialog(null, "You did not enter anything");
} else { JOptionPane.showMessageDialog(null, moviename + ", sounds like a good watch.");
}
String ques=JOptionPane.showInputDialog("Are you there? Yes? No? Maybe?");
if (ques=="yes") {
JOptionPane.showMessageDialog(null,"Great To hear!");
} else if (ques=="no") {
JOptionPane.showMessageDialog(null,"Thats odd..");
} else if (ques=="maybe" || ques=="Maybe" ) {
JOptionPane.showMessageDialog(null, "That was rhetorical...");
}
}
```