generated code

2020-02-26 Thread Glenn Holmer
There was an interesting question in #netbeans IRC on Freenode: "Is there a template for the (Java) generated hashcode, equals, and toString methods that I can edit so that it conforms to my required style?" Does anybody know the answer? -- Glenn Holmer (Linux registered user #16682) "After the

Re: GUI builder cannot find generated code

2019-10-31 Thread Peter Toye
Dear Neil, Oh well. I've looked at some old NB8 projects and they have the comments. I don't think it's the dependencies, though, as in my original project all I had to do was edit the Java file and it worked fine without touching the project properties, which had the same libraries as the cut-

Re: GUI builder cannot find generated code

2019-10-31 Thread Neil C Smith
On Thu, 31 Oct 2019 at 16:53, Peter Toye wrote: > Thanks a million. That did the trick. Great! > I suspect that the conversion from NB 8 to 11 has some bugs in this area - it > probably doesn't add the comments in properly. But now I don't have a working > NB 8 so can't test it out. In genera

Re: GUI builder cannot find generated code

2019-10-31 Thread Peter Toye
Dear Neil, Thanks a million. That did the trick. I had no idea what the GUI editor was looking for, and for some reason the NB editor suppresses the GEN-BEGIN/END comments, so it's not so easy to work out by looking at the text. I'd worked out the bit round the initcomponents method, but not t

Re: GUI builder cannot find generated code

2019-10-31 Thread Neil C Smith
On Thu, 31 Oct 2019 at 11:46, Peter Toye wrote: > You should get an error message saying the file is corrupt. If you don't, > your system is different from mine. Yep! Probably because it is. Open the OuterPane.java file in a text editor outside NetBeans and make sure the comments around the va

Re: GUI builder cannot find generated code

2019-10-31 Thread Peter Toye
day, October 22, 2019, 11:55:09 AM, you wrote: Another issue moving from NB 8 to 11.1 I moved a Java with Ant project from NB version 8 to 11.1, and everything seemed fine until I decided to modify a form within the project. I got an error message saying that the GUI builder couldn'

Re: GUI builder cannot find generated code

2019-10-23 Thread Paul "TheSlimDude" Morris
le to satisfy it? Various attempts by me to try that have all > failed. > > - > > Tuesday, October 22, 2019, 11:55:09 AM, you wrote: > > Another issue moving from NB 8 to 11.1 > > I moved a Java with Ant project from NB version 8 to 11.1,

Re: GUI builder cannot find generated code

2019-10-23 Thread Bayless
ad to just rebuild any of the old forms under the jdk version. Bayless On 10/23/19 11:46 AM, Peter Toye wrote: Re: GUI builder cannot find generated code Dear Paul, You can probably delete the swing library - the original program used it. The project platform is JDK12 which is what I&#

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
ous attempts by me to try that have all failed. - Tuesday, October 22, 2019, 11:55:09 AM, you wrote: Another issue moving from NB 8 to 11.1 I moved a Java with Ant project from NB version 8 to 11.1, and everything seemed fine until I decided to modify a form wit

Re: GUI builder cannot find generated code

2019-10-23 Thread Paul "TheSlimDude" Morris
can > edit the file to satisfy it? Various attempts by me to try that have all > failed. > > - > > Tuesday, October 22, 2019, 11:55:09 AM, you wrote: > > Another issue moving from NB 8 to 11.1 > > I moved a Java with Ant project from NB

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
1, and everything seemed fine until I decided to modify a form within the project. I got an error message saying that the GUI builder couldn't find the generated code. The message directed me to the wiki page http://wiki.netbeans.org/FormGuardedBlockError which describes the issue, but the ge

Re: GUI builder cannot find generated code

2019-10-23 Thread Geertjan Wielenga
1.1 > > I moved a Java with Ant project from NB version 8 to 11.1, and everything > seemed fine until I decided to modify a form within the project. I got an > error message saying that the GUI builder couldn't find the generated code. > The message directed me to the wiki page &

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
e: Another issue moving from NB 8 to 11.1 I moved a Java with Ant project from NB version 8 to 11.1, and everything seemed fine until I decided to modify a form within the project. I got an error message saying that the GUI builder couldn't find the generated code. The message

GUI builder cannot find generated code

2019-10-22 Thread Peter Toye
Another issue moving from NB 8 to 11.1 I moved a Java with Ant project from NB version 8 to 11.1, and everything seemed fine until I decided to modify a form within the project. I got an error message saying that the GUI builder couldn't find the generated code. The message directed me t