summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/gui/SimpleJList.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/main/java/bjc/utils/gui/SimpleJList.java')
-rw-r--r--base/src/main/java/bjc/utils/gui/SimpleJList.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/base/src/main/java/bjc/utils/gui/SimpleJList.java b/base/src/main/java/bjc/utils/gui/SimpleJList.java
index 411d0db..31c995c 100644
--- a/base/src/main/java/bjc/utils/gui/SimpleJList.java
+++ b/base/src/main/java/bjc/utils/gui/SimpleJList.java
@@ -15,14 +15,14 @@ public class SimpleJList {
* Create a new JList from a given list.
*
* @param <E>
- * The type of data in the JList
+ * The type of data in the JList
*
* @param source
- * The list to populate the JList with.
+ * The list to populate the JList with.
* @return A JList populated with the elements from ls.
*/
public static <E> JList<E> buildFromList(final Iterable<E> source) {
- if (source == null) throw new NullPointerException("Source must not be null");
+ if(source == null) throw new NullPointerException("Source must not be null");
return new JList<>(buildModel(source));
}
@@ -31,14 +31,14 @@ public class SimpleJList {
* Create a new list model from a given list.
*
* @param <E>
- * The type of data in the list model
+ * The type of data in the list model
*
* @param source
- * The list to fill the list model from.
+ * The list to fill the list model from.
* @return A list model populated with the elements from ls.
*/
public static <E> ListModel<E> buildModel(final Iterable<E> source) {
- if (source == null) throw new NullPointerException("Source must not be null");
+ if(source == null) throw new NullPointerException("Source must not be null");
final DefaultListModel<E> defaultModel = new DefaultListModel<>();