KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > zirc > gui > smiliesWindow > CustomDataModel


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

18 /**
19  * <p>Title: CustomDataModel</p>
20  * <p>Description: </p>
21  * <p>Copyright: Copyright (c) 2004</p>
22  * <p>Company: CoolBytes(Stephane claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com</p>
23  * @version 1.0
24  */

25
26 public class CustomDataModel extends AbstractTableModel
27 {
28
29   public Object JavaDoc getValueAt(int iRowIndex, int iColumnIndex)
30   {
31     return "" + iColumnIndex + "," + iRowIndex ;
32   }
33
34   public void setValueAt(Object JavaDoc aValue, int iRowIndex, int iColumnIndex)
35   {}
36
37   public int getColumnCount()
38   {
39     return 0 ;
40   }
41
42   public int getRowCount()
43   {
44     return SmiliesCollection.L ;
45   }
46
47 }
48
Popular Tags