Made filelist a local variable in AF

This commit is contained in:
Bokros Bálint 2016-05-14 13:29:24 +02:00
parent 657aff15f9
commit aef1c12b22

View File

@ -17,7 +17,6 @@ public class ApplicationFrame implements Runnable
private JPanel mapselectorpanel = null;
private Display gamepanel;
private JList<File> filelist;
private JScrollPane filescroll;
private Dimension menuDimension = new Dimension(640, 395);
@ -94,7 +93,7 @@ public class ApplicationFrame implements Runnable
}
}
filelist = new JList<>(dungeonslist);
JList<File> filelist = new JList<>(dungeonslist);
filelist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
filelist.addMouseListener(new ListMouseHandler());
filelist.setLayoutOrientation(JList.VERTICAL);