KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > cleanup > RemoveRemovedElementsImports


1 package org.netbeans.test.cleanup;
2
3 import javax.swing.JButton JavaDoc;
4 import javax.swing.table.AbstractTableModel JavaDoc;
5 import javax.swing.table.DefaultTableModel JavaDoc;
6
7 /**
8  * @author leon chiver
9  */

10 public class RemoveRemovedElementsImports {
11     
12     public RemoveRemovedElementsImports() {
13     }
14     
15     /**
16      * This method will be removed, the same needs to happen
17      * to the JButton import
18      */

19     private JButton JavaDoc jButtonMethod() {
20         return null;
21     }
22     
23     /**
24      * This method will be removed, the same needs to happen
25      * to the javax.swing.table.* import
26      */

27     private DefaultTableModel JavaDoc defaultTableModelMethod() {
28         return new DefaultTableModel JavaDoc();
29     }
30     
31     /**
32      * This method will be removed, the same needs to happen
33      * to the javax.swing.table.* import
34      */

35     private AbstractTableModel JavaDoc abstractTableModelMethod() {
36         
37         return new AbstractTableModel JavaDoc() {
38             public int getColumnCount() {
39                 return 0;
40             }
41             public int getRowCount() {
42                 return 0;
43             }
44             public Object JavaDoc getValueAt(int rowIndex, int columnIndex) {
45                 return null;
46             }
47         };
48     }
49
50 }
51
Popular Tags