Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1003643
Snippet name:
Category, Type:
Content:
static void makeTableUneditable(JTable table) { for (int c = 0; c < table.getColumnCount(); c++) { Class<?> col_class = table.getColumnClass(c); //O ed = table.getDefaultEditor(col_class); //print("Column " + c + " class: " + col_class + " editor: " + ed); table.setDefaultEditor(col_class, null); // remove editor } }
Comment:
Public (visible to everyone):
Created: 2016-07-24 21:25:00

This page without fancy editor.