Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. JTable table = new JTable();
  2. JScrollPane scrollPane = new JScrollPane(table);
  3.  
  4. table.setModel(new javax.swing.table.DefaultTableModel(
  5. controller.getKeywordsTable(), columnNames));
  6.  
  7. table.setFocusable(false);
  8. table.setRowSelectionAllowed(false);
  9.  
  10. for (int k = 0; k < table.getColumnCount(); k++) {
  11. Class<?> col_class = table.getColumnClass(k);
  12. table.setDefaultEditor(col_class, null);
  13. }
  14. p.add(scrollPane);
  15. return p;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement