Made filelist a local variable in AF
This commit is contained in:
parent
657aff15f9
commit
aef1c12b22
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user