| | |
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 |
account android api applet application array arrays automation bidirectional binary birt bluetooth class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program project property recursion ria scanner search server set sharepoint smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree unlimited webservices windows






