diff --git a/cicaprojekt/ApplicationFrame.java b/cicaprojekt/ApplicationFrame.java index 4d8f84c..62168ca 100644 --- a/cicaprojekt/ApplicationFrame.java +++ b/cicaprojekt/ApplicationFrame.java @@ -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 filelist; - public ApplicationFrame(){} + public ApplicationFrame(Game game){ + this.game = game; + } private class ListMouseHandler extends MouseAdapter{ @Override