When I run the code below everything works as it should when a parameter is passed. But if no parameter is passed then the message box is displayed, I press ok, and then nothing happens. The program continues to run.
public static void main(String[] args) {
if (args.length == 1) {
CImageViewerDispatch ivd = new CImageViewerDispatch(args[0]);
}
else {
JOptionPane.showMessageDialog(null, "Wrong number of arguments in program parameter list");
}
return;
}
Do i need to release the message box from memory or something?