}
public boolean performLogin() {
JDialog dlgLogin = new JDialog(new JFrame(), "Login");
dlgLogin.setIconImage(IconHelper.getProductLogoImage());
LoginScreen loginScreen = new LoginScreen(dlgLogin);
dlgLogin.add(loginScreen);
dlgLogin.setModal(true);
try
{
UIManager.setLookAndFeel(ApplicationContext.getCurrentLookAndFeel().getClassName());
SwingUtilities.updateComponentTreeUI(dlgLogin);
}
catch(Exception excp)
{
System.out.println(excp);
}
dlgLogin.pack();
dlgLogin.setLocationRelativeTo(null);
dlgLogin.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
dlgLogin.setVisible(true);
return loginScreen.getLoginStatus();
}