Here you can find the source of stopEditing(JTable table)
public static void stopEditing(JTable table)
//package com.java2s; //License from project: Open Source License import javax.swing.*; public class Main { public static void stopEditing(JTable table) { if (table != null && table.getCellEditor() != null) { table.getCellEditor().stopCellEditing(); }/*from w w w .java2 s .com*/ } }