Here you can find the source of loadGuiConfiguration(String configurationFilename)
public static Properties loadGuiConfiguration(String configurationFilename)
//package com.java2s; //License from project: Open Source License import java.io.FileInputStream; import java.net.URL; import java.net.URLDecoder; import java.util.Properties; public class Main { public static Properties loadGuiConfiguration(String configurationFilename) { try {/* w ww . j a va2 s .co m*/ URL configurationURL = Thread.currentThread().getContextClassLoader() .getResource(configurationFilename); String configurationFile = URLDecoder.decode(configurationURL.getFile(), "ISO-8859-1"); Properties properties = new Properties(); properties.load(new FileInputStream(configurationFile)); return properties; } catch (Exception e) { throw new IllegalArgumentException("could not load [" + configurationFilename + "]"); } } }