Here you can find the source of setClickCountToStartEditing(JTable table, int count)
public static void setClickCountToStartEditing(JTable table, int count)
//package com.java2s; // LICENSE: This file is distributed under the BSD license. import javax.swing.*; import javax.swing.table.TableCellEditor; public class Main { public static void setClickCountToStartEditing(JTable table, int count) { for (int columnIndex = 0; columnIndex < table.getColumnCount(); ++columnIndex) { TableCellEditor cellEditor = table.getColumnModel().getColumn(columnIndex).getCellEditor(); if (cellEditor instanceof DefaultCellEditor) { ((DefaultCellEditor) cellEditor).setClickCountToStart(count); }/*from www. j a v a 2s . co m*/ } } }