String labelFontStyle = String.format("%2s %2s %2s",
"-fx-font-size: " + fontLabel.getFont().getSize() + ";",
"-fx-font-family: " + fontLabel.getFont().getName() + ";",
"-fx-text-fill: " + "#" + fontLabel.getTextFill().toString().substring(2) + ";");
String categoryFont8 = properties.getProperty("categoryFont8");
category8.setStyle(categoryFont8);
String labelFontStyle = String.format("%s -fx-text-fill: purple;",
label.getStyle().toString());
public class DbConnection {
private static final String SQCONN = "jdbc:sqlite:";
public static Connection getConnection() throws SQLException{
String path = SQCONN + DbConnection.class.getResource("database.db");
try {
Class.forName("org.sqlite.JDBC");
return DriverManager.getConnection(path);
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
}
return null;
}
}