KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > helloworld > model > HwListModel


1 /*******************************************************************************
2  * Copyright (c) 2004, Dirk von der Weiden.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * Dirk von der Weiden - initial API and implementation
10  *
11  * Created on 21.02.2005
12  *
13  * date: 21.02.2005
14  * project: WiSer-HelloWorld
15  *
16  * *******************************************************************************/

17
18 package helloworld.model;
19
20 import javax.swing.DefaultListModel JavaDoc;
21
22 /**
23  * @author Dirk
24  *
25  * date: 21.02.2005
26  *
27  * <p>
28  * Purpose: This is an example how a swing data model works together with Wi.Ser lists
29  * </p>
30  */

31 public class HwListModel extends DefaultListModel JavaDoc
32 {
33     public HwListModel()
34     {
35     this.addElement("tiger");
36     this.addElement("elepahnt");
37     this.addElement("mouse");
38     this.addElement("monkey");
39     this.addElement("raven");
40     this.addElement("cat");
41     this.addElement("dog");
42     this.addElement("parrot");
43     }
44 }
45
Popular Tags