| | |
NetBeans protected code
Thread Solved
![]() |
•
•
Join Date: Aug 2008
Posts: 15
Reputation:
Solved Threads: 1
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);
}
}
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?)
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
![]() |
Similar Threads
Other Threads in the Java Forum
- Previous Thread: Text File to Java to Oracle
- Next Thread: FileChooser
| Thread Tools | Search this Thread |
911 actionlistener addball addressbook android applet application apps array automation binary bluetooth businessintelligence button card character class client code collision component consumer crashcourse css csv database desktop eclipse ee error fractal free ftp game givemetehcodez graphics gui html image integration j2me japplet java javaarraylist javac javadoc javaee javafx javaprojects jni jpanel julia jvm linked linux loan mac method migrate mobile netbeans objects online oriented phone physics printf problem program programming project projects radio recursion replaydirector reporting researchinmotion rotatetext rsa scanner se server service set sms software sort sql swing test textfield textfields threads time tree trolltech ubuntu update utility windows






