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
Dear Geertjan, Sorry for the delay - urgent project took up too much time. I'm not sure what you mean by a "Stack trace" - there's no dump available as it didn't crash. I've now put the example onto GitHub at https://github.com/ptoye/TestFormBug Here's as small an example as I can manage. Ste

Re: GUI builder cannot find generated code

2019-10-23 Thread Paul "TheSlimDude" Morris
GIT is the preferred method of sharing. Saves cluttering up inboxes of everyone on the list with attachments. --- Cheers, Slim On 2019-10-23 12:46, Peter Toye wrote: > Dear Paul, > > You can probably delete the swing library - the original program used it. > > The project platform is JDK12

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
Dear Paul, You can probably delete the swing library - the original program used it. The project platform is JDK12 which is what I've got installed. You can probably downgrade it to 11 without problems, as I don 't use any Java features that aren't in version 8. How is one to send an entire pr

Re: GUI builder cannot find generated code

2019-10-23 Thread Paul "TheSlimDude" Morris
I just did that and two issues popped up right away: Problem: The project uses a class library called "swing-layout", but this class library was not found. Solution: Click Resolve to open the Library Manager and create a new class library called "swing-layout". The active project platform is an

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
Dear Geertjan, I'm not sure what you mean by a "Stack trace" - there's no dump available as it didn't crash.. Here's as small an example as I can manage. Steps to reproduce: Open TestFormBug in NB 11.1 (I'm on Windows - don't know if the OS is relevant). If not already open, in package com.pto

Re: GUI builder cannot find generated code

2019-10-23 Thread Geertjan Wielenga
Unless we can reproduce it or get a stack trace, you’ll get no responses. Gj On Wed, 23 Oct 2019 at 16:09, Peter Toye wrote: > More information on this. When I open the .java file in a text editor, the > editor-fold lines have extra information > > // //GEN-BEGIN:initComponents > and > } //

Re: GUI builder cannot find generated code

2019-10-23 Thread Peter Toye
More information on this. When I open the .java file in a text editor, the editor-fold lines have extra information // //GEN-BEGIN:initComponents and } // //GEN-END:initComponents But these don't appear when I look at the file in NetBeans. I've done the same for a very simple project which

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 to the w