You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Thorsten Schöning <ts...@am-soft.de> on 2022/10/18 16:25:29 UTC

How does NetBeans compile GUI-designer class files using Gradle?

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.

In the long term I would like to be able to implement a test and
deployment pipeline and am having trouble to understand how and when
exactly NetBeans compiles the GUI classes. For example, I've created
the initial Gradle build for the test project of interest in Eclipse,
which doesn't know anything about NetBeans GUI designer. Nevertheless,
the results seem to be pretty similar regarding aspect like inner
classes and stuff.

Is the key understanding simply that NetBeans generates the Java files
already for each and every change in the GUI-designer? So nothing
special would be required by Gradle anyway?

If so, what about additional resources like images references in the
XML file? One of my files contain the following:

> <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
>   <Image iconType="3" name="/virtualkeyboard/images/space.gif"/>
> </Property>

And the generated code maintained by NEtBeans contains the following:

> jBBackspace.setIcon(new javax.swing.ImageIcon(getClass().getResource("/virtualkeyboard/images/backspace.gif"))); // NOI18N

So, as long as the images are available in the classpath, the build
will simply work on whatever system because of the generated code
above? No special handling for NetBeans at all?

I had the fear that I need to setup NetBeans somewhere in order to
fully build automatically. Thanks for your insights!

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.Schoening@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: TSchoening@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-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists