public void addRulesInTable() {
        try {
            RulesManager.getInstance().loadRules(MainClass.RULES_DIR);
        } catch (Exception ex) {
            Logger.getLogger(NBFrame.class.getName()).log(Level.SEVERE, null, ex);
            return;
        }

        DefaultTableModel model = (DefaultTableModel) tableRules.getModel();
        int rows = model.getRowCount();
        for (int i = rows - 1; i >= 0; i--) {
            model.removeRow(i);
        }

        for (Rule r : RulesManager.getInstance().getRulesList()) {
            model.addRow(new Object[]{(Boolean) r.isIsEnabled(), (String) r.getRuleName(), (String) r.getRuleURL(), (String) r.getRuleRegExpr()});
        }
    }