• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

how to change the generated code by IDE (netbeans)

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how to change the generated code by IDE (netbeans 6.8 )
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you asking how to edit a text file containing Java source code? I'm guessing not, but I can't really tell from the limited information you provide; you should TellTheDetails.
 
akash shrimali
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
suppose i have made code in net beans and i have made the design using properties on the right side . i want to change the code which is automatically generated by I.D.E .
 
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't by directly editing the code. Netbeans uses a seperate file for code generation (.form, XML). This is a one-way process, Netbeans is not capable of parsing source code for editing in it's visual editor... This is a catastrophe for interoperability (use Netbeans only for GUI editing or changes will be overwritten when you use it next time; or don't use the Netbeans GUI builder at all); but you can still influence most of the code generated. Changes will be stored in the .form-XML and show up in the generated code.

Just select the component and select the "Code" button in the properties view (the four buttons there are really tabs which show different pages in this view). If you set "Custom Creation Code" to a factory method then you can outsource the code editing to the code editor which is much more convinient.
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic