Java JTable Cell Editor stopEditingOnLosingFocus(final JTable table)

Here you can find the source of stopEditingOnLosingFocus(final JTable table)

Description

stop Editing On Losing Focus

License

BSD License

Declaration

public static void stopEditingOnLosingFocus(final JTable table) 

Method Source Code

//package com.java2s;
// LICENSE:      This file is distributed under the BSD license.

import javax.swing.*;

public class Main {
    public static void stopEditingOnLosingFocus(final JTable table) {
        table.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
    }/*  w w w.j a va  2s.c o  m*/
}

Related

  1. stopCellEditing(JTable table)
  2. stopCellEditing(JTable table)
  3. stopEditing(JTable table)
  4. stopEditing(JTable table)
  5. stopEditing(JTable table)
  6. stopTableEditing(JTable table)