aboutsummaryrefslogtreecommitdiffstats
path: root/src/ru/olamedia/game/DynamicJList.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ru/olamedia/game/DynamicJList.java')
-rw-r--r--src/ru/olamedia/game/DynamicJList.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ru/olamedia/game/DynamicJList.java b/src/ru/olamedia/game/DynamicJList.java
new file mode 100644
index 0000000..f944ba3
--- /dev/null
+++ b/src/ru/olamedia/game/DynamicJList.java
@@ -0,0 +1,16 @@
+package ru.olamedia.game;
+
+import javax.swing.DefaultListModel;
+import javax.swing.JList;
+
+public class DynamicJList extends JList {
+ private static final long serialVersionUID = 8188447632893130182L;
+
+ public DynamicJList() {
+ super(new DefaultListModel());
+ }
+
+ public DefaultListModel getContents() {
+ return (DefaultListModel) getModel();
+ }
+}