ERRO Can not issue data manipulation statements with executeQuery()

private void confirmaActionPerformed(java.awt.event.ActionEvent evt) {                                         
        PreparedStatement ps = null;
        ResultSet rs;
        float saldoo=Float.parseFloat(visor.getText());
        float saquee=saldo_a-saldoo;
        
        if(saldoo>=saldo_a){
               JOptionPane.showMessageDialog(null, "Seu saldo é insuficiente para fazer um saque");
            }
        else{
            String query = "UPDATE `registro` SET `saldo` = '"+saquee+"' WHERE `registro`.`u_id` = "+this.id+";";
        try {
            ps.executeUpdate(query);
            JOptionPane.showMessageDialog(null, "Saque feito com sucesso");
        } catch (SQLException ex) {
            System.out.println(ex.getMessage());
        }
        }
    }




package bh.banco;

import java.sql.Connection;
import java.sql.DriverManager;

public class MyConnection {
    
    public static Connection getConnection(){
        
        Connection con =null;
        try{
            Class.forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection("jdbc:mysql://localhost/java_login_registro", "root", "");
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        return con;
    }
    
}

executeQuery é para executar SELECT

Vc quer usar executeUpdate

E use prepared statement

https://www.tutorialspoint.com/jdbc/jdbc-update-records.htm