Map Path update für Abgabe
This commit is contained in:
		@@ -102,6 +102,7 @@ public class TourPlaner{
 | 
			
		||||
     * @return Path zu dem Bild für die GUI
 | 
			
		||||
     */
 | 
			
		||||
    public static String getImagePath(String tourname){
 | 
			
		||||
        System.out.println(ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "path") + tourname + ".jpg");
 | 
			
		||||
        return ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "path") + tourname + ".jpg";
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,7 @@ import tourplaner.object.Tour;
 | 
			
		||||
import tourplaner.ui.ProgressBar;
 | 
			
		||||
 | 
			
		||||
import java.awt.*;
 | 
			
		||||
import java.io.File;
 | 
			
		||||
import java.io.IOException;
 | 
			
		||||
import java.net.URI;
 | 
			
		||||
import java.net.URISyntaxException;
 | 
			
		||||
@@ -33,7 +34,9 @@ public class ViewModel {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    public Image getImage(String tourname){
 | 
			
		||||
        return new Image( ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "file_pre") + TourPlaner.getImagePath(tourname));
 | 
			
		||||
        System.out.println(ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "file_pre") + new File(TourPlaner.getImagePath(tourname)).getAbsolutePath());
 | 
			
		||||
        return new Image(ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "file_pre") + new File(TourPlaner.getImagePath(tourname)).getAbsolutePath());
 | 
			
		||||
//        return new Image( ConfigHelper.getIniString(ConfigHelper.getStandartConfig(), "map", "file_pre") + TourPlaner.getImagePath(tourname));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user