summaryrefslogtreecommitdiff
path: root/src/com/delwink/icebox/swing/InventoryItemEditor.java
diff options
context:
space:
mode:
authorDavid McMackins II <contact@mcmackins.org>2016-12-01 08:39:23 -0600
committerDavid McMackins II <contact@mcmackins.org>2016-12-01 08:39:23 -0600
commitd6af34bb7a737ecc3b4c4cca30e2df2bde07841d (patch)
treedb679c4c77aea876d062f611ae5116e21ddd2992 /src/com/delwink/icebox/swing/InventoryItemEditor.java
parent836ab01b6f372b35aecec4e17656a2232388783a (diff)
Add doc commentsHEADmaster
Diffstat (limited to 'src/com/delwink/icebox/swing/InventoryItemEditor.java')
-rw-r--r--src/com/delwink/icebox/swing/InventoryItemEditor.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/delwink/icebox/swing/InventoryItemEditor.java b/src/com/delwink/icebox/swing/InventoryItemEditor.java
index 0e64a93..1c056a2 100644
--- a/src/com/delwink/icebox/swing/InventoryItemEditor.java
+++ b/src/com/delwink/icebox/swing/InventoryItemEditor.java
@@ -41,6 +41,10 @@ import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
+/**
+ * A dialog for managing inventory items.
+ * @author David McMackins II
+ */
public class InventoryItemEditor extends JDialog {
private final List<Change> CHANGES;
private final Inventory INVENTORY;
@@ -48,6 +52,11 @@ public class InventoryItemEditor extends JDialog {
private final JButton ADD_BUTTON, CANCEL_BUTTON, SAVE_BUTTON;
private final JTable TABLE;
+ /**
+ * Creates a new dialog.
+ * @param parent The parent frame of this dialog.
+ * @param inventory The inventory for editing.
+ */
public InventoryItemEditor(Frame parent, Inventory inventory) {
super(parent, Lang.get("InventoryItemEditor.title"));
setDefaultCloseOperation(DISPOSE_ON_CLOSE);