12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
- * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
- */
-
- package ChatProgramm;
-
- import ChatProgramm.controller.CommandController;
- import ChatProgramm.view.ChatView;
- import javax.swing.JOptionPane;
- import javax.swing.UIManager;
-
- /**
- * Builder Class
- * @author le
- */
- public class Start
- {
- public Start()
- {
- ChatView view = new ChatView();
- CommandController controller_commands = new CommandController(view);
- controller_commands.registerEvents();
- controller_commands.registerCommands();
- view.setVisible(true);
- }
-
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args)
- {
- try
- {
- UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
- }
- catch (Exception ex)
- {
- JOptionPane.showMessageDialog(null, ex.toString());
- }
- new Start();
- }
- }
|