package dao; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; import javax.swing.JOptionPane; /** * * @author mark */ public class MarkingProperties { private static final Properties properties; static { properties = new Properties(); try { properties.load(new FileInputStream("marking.properties")); } catch (IOException ex) { JOptionPane.showMessageDialog(null, "marking.properties not found!"); } } public static String getJdbcUrl() { return properties.getProperty("jdbc.url"); } }