KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > zirc > gui > StatusFrame


1 package zirc.gui ;
2
3 import javax.swing.event.* ;
4 import zirc.base.* ;
5 import javax.swing.*;
6
7 //zIrc, irc client.
8
// Copyright (C) 2004 CoolBytes(Stephane claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com
9
//
10
// This program is free software; you can redistribute it and/or
11
// modify it under the terms of the GNU General Public License
12
// as published by the Free Software Foundation; either version 2
13
// of the License, or (at your option) any later version.
14
//
15
// This program is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU General Public License for more details.
19

20 /**
21  * <p>Title: StatusFrame</p>
22  * <p>Description: frame de server status</p>
23  * <p>Copyright: Copyright (c) 2004</p>
24  * <p>Company: CoolBytes(Stephane Claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com</p>
25  * @version 1.0
26  */

27
28
29 public class StatusFrame extends AbstractChatFrame
30 {
31
32 private final ImageIcon statusIMG = new ImageIcon("fichiers/images/statusIcon.png") ;
33
34   public StatusFrame()
35   {
36     super() ;
37     this.setFrameIcon(statusIMG);
38   }
39
40   public StatusFrame(IRCconnexion _IRCchat)
41   {
42     super(_IRCchat) ;
43   }
44
45   void this_internalFrameClosed(InternalFrameEvent e)
46   {
47     super.this_internalFrameClosed(e) ;
48     //on ferme le thread avec le serveur
49
IRCchat.disconnect() ;
50   }
51
52   /**
53    * jbInit
54    *
55    * @throws Exception
56    * @todo Implement this zirc.AbstractChatFrame method
57    */

58   protected void jbInit() throws Exception JavaDoc
59   {
60     super.jbInit() ;
61     this.setFrameIcon(statusIMG);
62
63   }
64
65 }
66
Popular Tags