Path: csiph.com!aioe.org!.POSTED!not-for-mail From: Dave Newsgroups: comp.lang.java.programmer Subject: Re: Moving code in Netbeans Date: Tue, 7 Jun 2016 07:53:20 -0400 Organization: Aioe.org NNTP Server Lines: 33 Message-ID: References: <94dc4bfa-818d-43fc-b651-e8f3d5c0a293@googlegroups.com> <5755F82F.7090709@fastmail.fm> NNTP-Posting-Host: PCKeaegu0n57C6K+6Jf31w.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:34522 On 06/07/2016 07:44 AM, Eric Sosman wrote: > On 6/7/2016 12:16 AM, Dave wrote: >> On 06/06/2016 11:30 PM, Eric Sosman wrote: >>> [...] >>> It's still not clear (to me, anyhow) whether you're talking about >>> code generated by NB or code you wrote yourself. [...] >>> >> Actually, I was very clear. I'm creating a GUI, which means that some >> of the code is auto-created and located where NB wants to place them. I >> would like to restructure the class so all properties are together, all >> events are together, etc. How? > > It may surprise you to learn that "GUI code" is not synonymous with > "auto-generated code," and that the first does not imply the second. > > As for getting NB to auto-generate code that meets your stylistic > preferences -- well, if there's a way to do so I'm not aware of it. But > it doesn't seem to me that anyone should care about the auto-generated > code's appearance; it seems akin to worrying about the appearance of the > JVM bytecode generated by the compiler. Although auto-generated code is > Java, it is not "source:" the source is the stuff the GUI design tool > takes in, and the auto-generated Java is "object code." Nobody is > expected to read it (except in extremis while chasing weird bugs), and > certainly nobody is expected to modify it. > > So: Sorry, I don't know how to achieve what you want, nor even if > it can be achieved. On the other hand, your desire seems daft. > I have always wondered why Java programs seem to be not quite as good as programs written in other languages. I always thought it was Java. After reading the responses to my question, I see the real reason Java apps are second class.