public static Connection getConexao() {

        try {
            return DriverManager.getConnection("jdbc:postgresql://localhost:5432/petiscos_lanches", "postgres", "senha");
        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Erro:\n" + ex);
            throw new RuntimeException(ex);
        }
    }