TestChat.java
01 package fr.isae.chat.gui;
02 
03 import fr.isae.chat.model.Chat;
04 import fr.isae.chat.log.ChatFileLogger;
05 import java.awt.Color;
06 
07 /**
08  <code>TestChat</code> cree un chat et deux vues pour ce chat.
09  *
10  @author <a href="mailto:garion@isae.fr">Christophe Garion</a>
11  @version 1.0
12  */
13 public class TestChat {
14 
15     /**
16      * Programme applicatif creeant deux fenetres vers le meme chat.
17      *
18      @param args non utilise ici
19      */
20     public static void main(String[] args) {
21         Chat c = new Chat();
22         VueChat vue1 = new VueChat(c, "Vue Christophe""Christophe");
23         vue1.setLocation(1010);
24         VueChat vue2 = new VueChat(c, "Vue Toto""Toto");
25         vue2.setLocation(50010);
26         ChatFileLogger logger = new ChatFileLogger("log.txt", c);        
27     }
28 }