added Game reference to ApplicationFrame

This commit is contained in:
Kjistóf 2016-05-07 17:46:43 +02:00
parent 1c4488d710
commit 1f02ffc892

View File

@ -2,16 +2,15 @@ package cicaprojekt;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
public class ApplicationFrame implements Runnable
{
private Game game;
private JFrame jframe;
private JPanel mapselectorpanel;
@ -20,7 +19,9 @@ public class ApplicationFrame implements Runnable
private JList<File> filelist;
public ApplicationFrame(){}
public ApplicationFrame(Game game){
this.game = game;
}
private class ListMouseHandler extends MouseAdapter{
@Override