109110111112113114115116
} } } protected void btnNewActionPerformed(ActionEvent arg0) { category = new ProductCategory(); loadCategoryToForm(); }
5455565758596061626364
} search.addPropertyChangeListener(this); setSearchPanel(search); category = new CategoryForm(new ProductCategory(), token); category.addPropertyChangeListener(this); setEntryPanel(category); addPropertyChangeListener(new PropertyChangeListener() {
20212223242526272829
model.removeRow(0); } if(!list.isEmpty()){ for(Object ob : list){ ProductCategory c = (ProductCategory) ob; model.addRow(new Object[]{c.getName(), c.getDescription()}); } } }