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(10, 10);
24 VueChat vue2 = new VueChat(c, "Vue Toto", "Toto");
25 vue2.setLocation(500, 10);
26 ChatFileLogger logger = new ChatFileLogger("log.txt", c);
27 }
28 }
|