30313233343536
public void actionPerformed(ActionEvent arg0) { int selectedIndex = selectionModel.getMinSelectionIndex(); if (selectedIndex != -1) new EditProductDialog(parent, dataModel, selectedIndex); }