()
| 150 | } |
| 151 | |
| 152 | private void examineCurrentItem() |
| 153 | throws DBException, IOException |
| 154 | { |
| 155 | int sel = this.itemsField.getSelectedIndex(); |
| 156 | if (sel < 0) { |
| 157 | JOptionPane.showMessageDialog(this, "You must select an item to examine", "No item selected", 0); |
| 158 | |
| 159 | return; |
| 160 | } |
| 161 | |
| 162 | InventoryItem item = (InventoryItem)this.itemsModel.getElementAt(sel); |
| 163 | |
| 164 | examineItem(item.getName(), (DBList)item.getElement().getValue()); |
| 165 | } |
| 166 | |
| 167 | private void examineAvailableItem() |
| 168 | throws DBException, IOException |
no test coverage detected