if I understand you correctly, which I hope I do, otherwise my answer won't mean that much to you :)
you want a number of answers, determined by the case clauses, all in the same MessageDialog, like
"
Answer one
Answer two
...
Last answer
"
if this is the problem, the sollution is quite easy.
just declare a String 'output' before you start the switch statement and then just add every answer to this same String object.
at the end of the statements, when all the answers you want are stored in the String object, display the String in the JOptionPane.MessageDialog
for instance:
String output = "";
int answer = readAnswer();
while(busy){
switch(answer){
case 1: output += "\n" + wantedAnswer;
// wantedAnswer is a String containing the message you would
// would like to show for this case
break;
case 2: output += "\n" + wantedAnswer2;
}
int answer = readAnswer();
if(answer == 0)
busy = false;
}
basicly, you're just adding content to one and the same String object, and afterwards, you can use this String object (output) as text to display in your messageDialog.
the \n will automatically force the text to start at a new line, so the output will be formatted and will look a bit 'organized'.