Re: JavaFX 12

2020-08-10 Thread Neil C Smith
On Mon, 10 Aug 2020 at 15:32, Ernie Rael wrote: > If you take a look at /nbactions.xml (or similarly in NB "proj > > properties > actions) there's run and debug. Notice the "clean". I'm > guessing you don't need to do the clean/build because that is implicit > in the run/debug. > > I don't know a

Re: JavaFX 12

2020-08-10 Thread Ernie Rael
On 8/10/2020 5:51 AM, HRH wrote: Bad habits got me in trouble. I am used to using Shift-F6 on each main class and that's why led to the problem. I used the Run->Set Main project, then chose Clean and Build Main project and finally Run -> Run Main Project. It works great now. If you take a loo

Re: JavaFX 12

2020-08-10 Thread HRH
Bad habits got me in trouble. I am used to using Shift-F6 on each main class and that's why led to the problem. I used the Run->Set Main project, then chose Clean and Build Main project and finally Run -> Run Main Project. It works great now. To reproduce the problem, I used Shift-F6 again, and

Re: JavaFX 12

2020-08-10 Thread HRH
Hi Chris, I already have those properties in the aforementioned files as part of the initial setup. Both the pom and nbactions are having your recommended elements. I think my problem is somewhere eles, I will report back. On Monday, August 10, 2020, 4:38:34 PM GMT+4:30, Luff,Chris wrote

Re: JavaFX 12

2020-08-10 Thread Chuck Davis
You'll also have to update the plugins. i.e. change the compiler plugin to 3.8.1 and any others that have a newer version available. Following section of my POM. org.apache.maven.plugins maven-compiler-plugin 3.8.1

Re: JavaFX 12

2020-08-10 Thread Luff,Chris
You’ll need the javafx-maven-plugin... org.openjfx javafx-maven-plugin 0.0.4 Then configure the run action in nbactions to execute that; run jar clean javafx:run On 10 Aug 2020, at 12:55, HRH mailto:hrh...@yahoo.

Re: JavaFX 12

2020-08-10 Thread HRH
Chuck,Thanks for the prompt response. During the installation and initial setup, I changed the artifact versions per instructions given by Getting Started with JavaFX | | | | Getting Started with JavaFX Getting started with JavaFX for Java desktop application development | | | Here

Re: JavaFX 12

2020-08-10 Thread Chuck Davis
Update your POM to latest versions of Maven artifacts. On Mon, Aug 10, 2020 at 3:34 AM HRH wrote: > I forgot to indicated, that I have already modified the > > > > org.me.learningfx.control.MavenFxBasicDemo > > > in the pom.xml file. > > Thanks > > > On Monday, August 10, 2

Re: JavaFX 12

2020-08-10 Thread HRH
I forgot to indicated, that I have already modified the       org.me.learningfx.control.MavenFxBasicDemo   in the pom.xml file. Thanks On Monday, August 10, 2020, 2:54:09 PM GMT+4:30, HRH wrote: Hi, While using "Java with Maven"->FXML JavaFX Maven

Re: JavaFX 12

2020-08-10 Thread HRH
Hi, While using "Java with Maven"->FXML JavaFX Maven Archtype" works fine to run its pre-configured App.java, creating a new package with a new main class fails to compile with the following error. Any insights on which resources need to be modified? Thanks in advance. Error msg:Error: JavaFX r

Re: JavaFX 12

2020-08-05 Thread Chuck Davis
Thanks for those links, Scott. On Wed, Aug 5, 2020 at 3:00 PM Scott Palmer wrote: > You might also consider running with a distribution of OpenJDK that > includes JavaFX. That simplifies things quite a bit. No need to fiddle with > the module path. > > One such distribution is Bell Soft’s Liberi

Re: JavaFX 12

2020-08-05 Thread Scott Palmer
You might also consider running with a distribution of OpenJDK that includes JavaFX. That simplifies things quite a bit. No need to fiddle with the module path. One such distribution is Bell Soft’s Liberica JDK (Full version, not Standard) https://bell-sw.com/pages/downloads/#/java-14-current

Re: JavaFX 12

2020-08-05 Thread Chuck Davis
I suggest you take Ernie's suggestion to get started (use the fxml archtype). You can build and run your application in NB. The first thing to do after creating the project is edit the POM to update to newer versions of Maven artifacts. Then, when you wish to run your application outside NB you

Re: JavaFX 12

2020-08-05 Thread Ernie Rael
The easiest way to run jfx with NetBeans is through maven. In NetBeans you can do NewProject.. > JavaWithMaven > "Simpe JavaFX Maven Archetype" (or the FXML one if that's what you're after) This gives you a simple project that you can run and debug. -ernie On 8/5/2020 11:52 AM, HRH wrote:

JavaFX 12

2020-08-05 Thread HRH
Hi, Trying to build a JavaFX project with Netbeans 12.0 IDE, using the online documentation Getting Started with JavaFX | | | | Getting Started with JavaFX Getting started with JavaFX for Java desktop application development | | | In step 3 of this page, adding the JavaFX12 to the libr