Results 1 to 10 of 10
- 04-09-2010, 11:31 AM #1
- 04-09-2010, 12:00 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
In general you cannot modify generated code in NetBeans, because the content bind with the xml form. Go through the following.
FaqFormEditingGuardedBlocks - NetBeans Wiki
- 04-09-2010, 12:22 PM #3
thnx for the reply.... but the post doesn't explains how to delete the generated code apart from adding custom codes to it.
The Quieter you become the more you are able to hear !
-
It can be done by copying and pasting the file, but you really shouldn't delete or modify this code as doing so will prevent you from editing the d&d gui components. My recommendation is that you learn to code Swing by hand.
- 04-09-2010, 12:54 PM #5
Hi Fubarable its "Y. Progammer" remember me..
By the way i already tried it..... but what iscopying and pasting the filed&d gui componentsThe Quieter you become the more you are able to hear !
-
D&D are the "drag and drop" components. If you mess with the non-editable code, say by editing the file in Eclipse, you will not be able to change the GUI in NetBeans' GUI visual editor.
- 04-09-2010, 01:11 PM #7
I got it. So literally speaking there is no straight forward way to edit the auto generated code.Isn't it?
The Quieter you become the more you are able to hear !
- 04-09-2010, 01:19 PM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
That's the price you pay for using a UI designer.
If it's a price you're happy to pay then you live with it, if not then you need to learn how to code Swing by hand.
- 06-02-2012, 03:12 PM #9
Member
- Join Date
- Jun 2012
- Posts
- 1
- Rep Power
- 0
Re: How to edit the non-editable code generated by the netbeans ???
I'm working with NetBeans 7.1.1, just saying it because I have no experience with previous versions and the feature might be new, but in the "Design" view it is possible to right-click compnents and select "Customize Code"; this does not allow you to edit all the pregenerated code but some of the crucial code affecting the selected component. Hope it helps, it certainly did for me.
- 06-02-2012, 05:04 PM #10
Re: How to edit the non-editable code generated by the netbeans ???
Why do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Online IDE to edit and compile code?
By DarrenReeder in forum Other IDEsReplies: 1Last Post: 02-06-2011, 01:58 AM -
Help me c n edit the password Genarator code !! EMERGENCY
By jervis in forum AWT / SwingReplies: 0Last Post: 03-28-2010, 09:55 AM -
Can I edit Entity Classes in netbeans
By dilanka007 in forum New To JavaReplies: 0Last Post: 01-16-2010, 12:53 AM -
How To Edit/Add JSP Pages in NetBeans IDE
By JavaForums in forum NetBeansReplies: 2Last Post: 02-17-2009, 11:14 AM -
How to delete pre-generated code?
By Terentius in forum NetBeansReplies: 0Last Post: 08-19-2008, 04:02 PM


LinkBack URL
About LinkBacks


Bookmarks