added Game reference to ApplicationFrame
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user