summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/gui
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-03-22 12:28:35 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-03-22 12:28:35 -0400
commit01cb9f504c860bc1c037a44f3a76bf342a293d46 (patch)
tree02d1d34de0828159bbda93e881c93a6b45720f32 /BJC-Utils2/src/main/java/bjc/utils/gui
parent4685955a62c430007c5c8ed2b915ffc618d30aca (diff)
General formatting cleanup and documentation update
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java4
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java8
2 files changed, 11 insertions, 1 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java
index 0acbd65..f18378e 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java
@@ -51,6 +51,9 @@ public class SimpleDialogs {
/**
* Asks the user to pick an option from a series of choices.
*
+ * @param <E>
+ * The type of choices for the user to pick
+ *
* @param parent
* The parent frame for this dialog
* @param title
@@ -137,6 +140,7 @@ public class SimpleDialogs {
/**
* Get a value parsable from a string from the user.
+ * @param <E> The type of the value parsed from the string
*
* @param parent
* The parent component for dialogs.
diff --git a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java
index 8bca490..614cf33 100644
--- a/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java
+++ b/BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java
@@ -14,17 +14,23 @@ public class SimpleJList {
/**
* Create a new JList from a given list.
*
+ * @param <E>
+ * The type of data in the JList
+ *
* @param ls
* The list to populate the JList with.
* @return A JList populated with the elements from ls.
*/
public static <E> JList<E> buildFromList(Iterable<E> ls) {
- return new JList<E>(buildModel(ls));
+ return new JList<>(buildModel(ls));
}
/**
* Create a new list model from a given list.
*
+ * @param <E>
+ * The type of data in the list model
+ *
* @param ls
* The list to fill the list model from.
* @return A list model populated with the elements from ls.