/* * 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.controller.GrafikController; import ChatProgramm.model.ChatModel; import ChatProgramm.model.GrafikDaten; import ChatProgramm.model.ReceiveAdapter; import ChatProgramm.view.ChatView; import ChatProgramm.view.GrafikView; import javax.swing.JOptionPane; import javax.swing.UIManager; /** * Builder Class * @author le */ public class Start { public Start() { GrafikDaten gDaten = new GrafikDaten(); ChatView view = new ChatView(); GrafikView zeichenflaeche = view.getGvZeichenflaeche(); zeichenflaeche.setModel(gDaten); ChatModel model = new ChatModel(gDaten); ReceiveAdapter rAdapter = new ReceiveAdapter(view, model); model.addSubscription(rAdapter); // // // GrafikController controller = new GrafikController(zeichenflaeche, model); // controller.registerEvents(); // // CommandController controller_commands = new CommandController(view, model, controller, zeichenflaeche); // 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(); } }