public void openConnection() {

        System.out.println("-------- Oracle JDBC Connection Testing ------");

        try {

            Class.forName("oracle.jdbc.driver.OracleDriver");

        } catch (ClassNotFoundException e) {

            System.out.println("Where is your Oracle JDBC Driver?");
            
        }

        System.out.println("Oracle JDBC Driver Registered!");

        Connection connection = null;
        try {

            connection = DriverManager.getConnection(
                    "jdbc:oracle:thin:@olimpia.lcc.uma.es:1521:edgar", "inftel14_40",
                    "psts");

        } catch (SQLException e) {

            System.out.println("Connection Failed! Check output console");

        }

        if (connection != null) {
            System.out.println("Yeah! Conection with database succesful.");
            this.con = connection;
        } else {
            System.out.println("Failed to make connection!");
        }
    }