You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Start.java 993B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
  3. * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
  4. */
  5. package ChatProgramm;
  6. import ChatProgramm.controller.CommandController;
  7. import ChatProgramm.view.ChatView;
  8. import javax.swing.JOptionPane;
  9. import javax.swing.UIManager;
  10. /**
  11. * Builder Class
  12. * @author le
  13. */
  14. public class Start
  15. {
  16. public Start()
  17. {
  18. ChatView view = new ChatView();
  19. CommandController controller_commands = new CommandController(view);
  20. controller_commands.registerEvents();
  21. controller_commands.registerCommands();
  22. view.setVisible(true);
  23. }
  24. /**
  25. * @param args the command line arguments
  26. */
  27. public static void main(String[] args)
  28. {
  29. try
  30. {
  31. UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
  32. }
  33. catch (Exception ex)
  34. {
  35. JOptionPane.showMessageDialog(null, ex.toString());
  36. }
  37. new Start();
  38. }
  39. }