Here you can find the source of createTable()
private static JTable createTable()
//package com.java2s; //License from project: Open Source License import javax.swing.JTable; public class Main { private static JTable createTable() { JTable jtablePOSTags = new JTable() { private static final long serialVersionUID = -4090662450740771673L; @Override//from w ww . j av a 2 s . com public boolean isCellEditable(int x, int y) { if (y == 1) return true; return false; } public Class<?> getColumnClass(int column) { if (column == 1) return Boolean.class; return String.class; } }; return jtablePOSTags; } }