08.11.2011 - ReturnValue showDialog() { setVisible(true); return result; } to return control to the showDialog() function. Frame) null, true); setModalityType(java.awt.Dialog .