From 01cb9f504c860bc1c037a44f3a76bf342a293d46 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 22 Mar 2016 12:28:35 -0400 Subject: General formatting cleanup and documentation update --- BJC-Utils2/src/main/java/bjc/utils/gui/SimpleDialogs.java | 4 ++++ BJC-Utils2/src/main/java/bjc/utils/gui/SimpleJList.java | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/gui') 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 + * 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 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 + * 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 JList buildFromList(Iterable ls) { - return new JList(buildModel(ls)); + return new JList<>(buildModel(ls)); } /** * Create a new list model from a given list. * + * @param + * 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. -- cgit v1.2.3