Por que o Netbeans tá acusando erro?

private void excluirActionPerformed(java.awt.event.ActionEvent evt) {                                        
    int o = Integer.parseInt(excluido.getText().trim());
    String i = "delete from ESTADOS where ID = ?";
    try {
        PreparedStatement pst = c.conn.prepareStatement(i);
        pst.setInt(1, o);
        int x = pst.executeUpdate();
        for (int i = 0; i < t.getRowCount(); i++) { //ERRO AQUI!!!
            t.removeRow(0);
        }
        preencherTabela("select * from ESTADOS order by ID");
        JOptionPane.showMessageDialog(null, "DEU CERTO");
    } catch (SQLException ex) {
        Logger.getLogger(Teste.class.getName()).log(Level.SEVERE, null, ex);
        JOptionPane.showMessageDialog(null, ex.getMessage());
    }
} 

O erro está nessa linha:for (int i = 0; i < t.getRowCount(); i++) { //ERRO AQUI!!!

vc declarou i em cima como String

depois declarou como inteiro.

que tal chamar a primeira string de algo mais adequado como… sql ou query?

O erro é usar t.getRowCount() dentro do laço. Em nenhum momento vc declarou a variável t, portanto vc está tentando chamar uma função em cima de um valor nulo.