• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NetBeans editing auto generated code...

 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on a project and someone built the main gui interface using the form generator in NetBeans.

All of the autogenerated code is highlighted blue and "locked" is there a way in net beans to unlock it? so I can make changes to it?


-Tad
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no. And don't think of editing the code outside Netbeans as Netbeans is apt to undo whatever you changed the next time you load the class inside Netbeans.

The only solution is to switch to an IDE that doesn't have such restrictions.
[ March 20, 2005: Message edited by: Jeanne Boyarsky ]
 
C Kutler
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, the answer is YES. Simply look for and delete all the .form files associated with that project.

While it is true that the IDE does not reverse engineer user written code so that you can use the GUI builder, edit in a different editor or IDE, and then use the GUI builder again, you can use the GUI builder to quickly build and maintain the interface. Should you choose at any time to use something besides the GUI builder, disconnect the code from the builder by removing the .form metadata files.
 
C Kutler
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another method is to simply copy the generated code and paste it back
into the source code without the code that signifies the beginning and
end of the guarded block.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic