Java JTable Create createTable()

Here you can find the source of createTable()

Description

create Table

License

Open Source License

Declaration

private static JTable createTable() 

Method Source Code

//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;
    }
}

Related

  1. createTable(Component... comps)
  2. createTable(final String[] pHeaderToolTips)