Java prog with message box