Пример #1
0
 {
   table = new JTable();
   model.setErrors(errors);
   table.setModel(model);
   TableColumn detailsColumn = table.getColumnModel().getColumn(1);
   detailsColumn.setCellEditor(new DetailRenderer());
   detailsColumn.setCellRenderer(new DetailRenderer());
   detailsColumn.setPreferredWidth(15);
   table.getColumnModel().getColumn(0).setPreferredWidth(DEFAULT_FIRST_COMUMN_WIDTH);
 }
Пример #2
0
 public void setErrors(List<?> errors) {
   this.errors = errors;
   model.setErrors(errors);
 }