public static Color getColor(String nom) {
		Connection con = null;
		try {
			Class.forName("org.sqlite.JDBC");
			con = DriverManager.getConnection("jdbc:sqlite:" + Parametre.workspace + "/bdd_models");
			Statement stmt = con.createStatement();
			String query = "select nom from modeles where nom=\"" + nom + "\"";
			ResultSet rs = stmt.executeQuery(query);
			if (rs.next() != false && rs.getString("nom").equals(nom)) {
				return new Color(Integer.parseInt(stmt.executeQuery("select color from modeles where nom='" + nom + "'").getString("color")));
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				con.close();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return new Color(0x999999);
	}