Here you can find the source of stopEditing(JTable table)
public static void stopEditing(JTable table)
//package com.java2s; //License from project: Apache License import javax.swing.*; public class Main { public static void stopEditing(JTable table) { if (table == null) { return; }// w ww. j a va 2s . co m if (table.isEditing()) { table.getCellEditor(table.getEditingRow(), table.getEditingColumn()).stopCellEditing(); } } }