0

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 by Nick Evan: Fixed formatting

3
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Tyrone.Wilson
0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.