@Override public Object getValueAt(int row, int col) { NamedBean b; switch (col) { case SYSNAMECOL: // slot number return sysNameList.get(row); case USERNAMECOL: // return user name // sometimes, the TableSorter invokes this on rows that no longer exist, so we check b = getBySystemName(sysNameList.get(row)); return (b != null) ? b.getUserName() : null; case VALUECOL: // return getValue(sysNameList.get(row)); case COMMENTCOL: b = getBySystemName(sysNameList.get(row)); return (b != null) ? b.getComment() : null; case DELETECOL: // return Bundle.getMessage("ButtonDelete"); default: log.error("internal state inconsistent with table requst for " + row + " " + col); return null; } }
protected void resetBasicItems(ActionEvent e) { userNameField.setText(bean.getUserName()); commentField.setText(bean.getComment()); }