public static void main(String[] args) { SysOutUtils.sysout(ManagementFactory.getRuntimeMXBean().getName()); UncaughtExceptionHandlerInitializer.initUncaughtExceptionHandler(); Example_7_Model model = new Example_7_Model(); Example_7_ViewModel viewModel = new Example_7_ViewModel(); viewModel.connectTo(model); SwingUtilities2.invokeLater( () -> { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); Example_7_View view = new Example_7_View(); view.bind(viewModel); view.setVisible(true); }); }
public void createAccount(NameFirstname nameFirstname) throws InterruptedException { SysOutUtils.sysout("Processing: " + nameFirstname.toString()); Thread.sleep(5000); // = Simulation of a "very slow" backend SysOutUtils.sysout("Finished: " + nameFirstname.toString()); }