127128129130131132133134135
if (dialog != null) { dialog.setVisible(false); dialog = null; } if (advice != null) { dialog = new AdvisorDialog(advice); dialog.advise(); } }