Hi there, Just would like to know what is the motivation behind separating the java and the form files?
On Tue, Oct 18, 2022 at 9:12 AM Thorsten Schöning <tschoen...@am-soft.de> wrote: > Hi everyone, > > I would like to switch historically grown projects in NetBeans own > directory layout with its own settings files to Gradle using the > common distinction of Java source files vs. resources of other kinds. > Currently I have a mixup of Java files, assoicted *.form files for the > UI designer and even images. > > I've already moved *.form files etc. from \src\foo\bar\*.form to > \src\main\resources\foo\bar\*.form. And while that seems to even > produce some result with Gradle, the UI designer in NetBeans doesn't > recognize that layout anymore and doesn't provide the "Design" > interface for some class. Only "Source" and "History". If I move > *.form back to the directory of the *.java, the "Design" interface is > shown again. > > Though, it seems the images can be placed in "resources". During my > tests I kept those there and the designer nevertheless showed all of > them. I guess this is because the corresponding XML *.form files > contain the following paths, which are resolved using the classloader > in the end: > > > <Property name="icon" type="javax.swing.Icon" > editor="org.netbeans.modules.form.editors2.IconEditor"> > > <Image iconType="3" name="/virtualkeyboard/images/space.gif"/> > > </Property> > > So, is there any way to make NetBeans work the same with the *.form > files? Thanks! > > Mit freundlichen Grüßen > > Thorsten Schöning > > -- > AM-SoFT IT-Service - Bitstore Hameln GmbH > Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK > > E-Mail: thorsten.schoen...@am-soft.de > Web: http://www.AM-SoFT.de/ > > Tel: +49 5151- 9468- 0 > Tel: +49 5151- 9468-55 > Mobil: +49 178-8 9468-04 > > AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 > Hameln > AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska > > > Für Rückfragen stehe ich Ihnen jederzeit zur Verfügung. > > Mit freundlichen Grüßen, > > Thorsten Schöning > > > Telefon: +49 5151 9468-55 > Fax: > E-Mail: tschoen...@am-soft.de > > AM-Soft IT-Service - Bitstore Hameln GmbH > Brandenburger Straße 7c > 31789 Hameln > > Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte > Informationen und ist ausschliesslich für den Adressaten bestimmt. > Jeglicher Zugriff auf diese E-Mail durch andere Personen als den Adressaten > ist untersagt. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail > irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und > vernichten Sie diese E-Mail. Sollten Sie nicht der für diese E-Mail > bestimmte Adressat sein, ist Ihnen jede Veröffentlichung, Vervielfältigung > oder Weitergabe wie auch das Ergreifen oder Unterlassen von Massnahmen im > Vertrauen auf erlangte Information untersagt. > > This e-mail may contain confidential and/or privileged information and is > intended solely for the addressee. Access to this email by anyone else is > unauthorized. If you are not the intended recipient (or have received this > e-mail in error) please notify the sender immediately and destroy this > e-mail. If you are not the intended recipient, any disclosure, copying, > distribution or any action taken or omitted to be taken in reliance on it, > is prohibited and may be unlawful. > > Hinweise zum Datenschutz: bitstore.group/datenschutz > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > For additional commands, e-mail: users-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > >