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);
        }
}

Maybe ask at a NetBeans Forum (www.netbeans.org maybe?)

Just open the file in a text editor.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.