NetBeans protected code

Thread Solved

Join Date: Aug 2008
Posts: 15
Reputation: Tyrone.Wilson is an unknown quantity at this point 
Solved Threads: 1
Tyrone.Wilson Tyrone.Wilson is offline Offline
Newbie Poster

NetBeans protected code

 
0
  #1
Nov 20th, 2008
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);
}
}
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,335
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 250
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: NetBeans protected code

 
0
  #2
Nov 20th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 15
Reputation: Tyrone.Wilson is an unknown quantity at this point 
Solved Threads: 1
Tyrone.Wilson Tyrone.Wilson is offline Offline
Newbie Poster

Re: NetBeans protected code

 
0
  #3
Nov 20th, 2008
nevermind. thanks.
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,427
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 507
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: NetBeans protected code

 
0
  #4
Nov 20th, 2008
Just open the file in a text editor.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 15
Reputation: Tyrone.Wilson is an unknown quantity at this point 
Solved Threads: 1
Tyrone.Wilson Tyrone.Wilson is offline Offline
Newbie Poster

Re: NetBeans protected code

 
0
  #5
Nov 21st, 2008
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC