The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!!

Anyone know how to temporarily remove the protection, edit what you want and then put it on again?

I am so frustrated right now.

private void HVAC_NoBOQFinItemStateChanged(java.awt.event.ItemEvent evt) {                                               
        try {
            if (HVAC_NoBOQFin.isSelected()) {
                HVAC_NoBOQ.setSelected(false);
            }
//this block is Guarded!!!! arrgh.
      refreshHVAC();                                         
        } catch (FileNotFoundException ex) {
            Logger.getLogger(FeeCalcView.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(FeeCalcView.class.getName()).log(Level.SEVERE, null, ex);
        }
}

Edited 3 Years Ago by Nick Evan: Fixed formatting

Thanks.... I actually managed to get it sorted by opening in notpad and moving the tags "//GEN - END methodName" around and that fixed the problem. thanks for the help though, much appreciated.

This question has already been answered. Start a new discussion instead.