Jim Jupiter

Greenhorn
+ Follow
since Sep 15, 2019
Jim likes ...
Android Java Windows
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
3
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jim Jupiter

After a couple of retries - now it works ... didn't know exactly ... but this works for me now in IntelliJ IDEA 2019-3

- Creating a JavaFX Project in IDEA

- File / Project Structure - setting Libraries to javaFX-SDK path (choose + and Java)

- In Run / Edit Configurations following line works for me --->  

--module-path "c:\Program Files\java\javafx-sdk-13.0.1\lib” --add-modules=javafx.controls,javafx.fxml




7 months ago
Maybe a good start to overcome some traumatic school memories with mathematics  
8 months ago
Nope        

I have installed Eclipse 2019-09

installed e(fx)clipse 3.6.0

Now I'm here



all fx commands are red x

and enough trouble for today ... just relaxing  

Edit: Now it looks like this



Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method launch(String[]) is undefined for the type Main

at DBFX2020.Main.main(Main.java:25)
8 months ago
Does it work with Eclipse or Netbeans? Any know-how?

Try it now this way - didn't understand it - but maybe it works

8 months ago


Now IntelliJ did not start

If you already have a 64-bit JDK installed - define a java home variable

Failed to create JVM path. Path C: program files\java\jdk 13.0.1

appears



Edit:

JAVA_HOME C:\Program Files\Java\jdk-13.0.1
IDEA_JDK_64 C:\Program Files\Java\jdk-13.0.1

I:\javafx-sdk-13.0.1
8 months ago




8 months ago


same error again

modul-info.java don't see it

I reinstalled IDEA and then Import the project - maybe there some fault?
8 months ago


as stackoverflow says i have put this to vm options (last two)

Edit: if I delete two lines - same error

IDE  IntelliJ IDEA

modular??? don't know
8 months ago
Hmmm

some error occurred

Caused by: java.lang.IllegalAccessError: class com.sun.javafx.fxml.FXMLLoaderHelper (in unnamed module @0x6a15cd04) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x6a15cd04


Parent root = FXMLLoader.load(getClass().getResource("Main.fxml"));
8 months ago
Thank you - it works - I have downloaded Gluon JavaFX  13 SDK from the above mentioned link - then press F4 - open modul settings and then - add lib
8 months ago
Hi

I have reinstalled IntelliJ IDEA with Java SDK 13

but message appears Error:(3, 19) java: package javafx.fxml does not exist

???

What should I do? Install this? https://gluonhq.com/products/javafx/
8 months ago

Knute Snortum wrote:I don't understand the problem.  You would load the controller just like any other FXML.

How to?

What do you mean that you can't generate a controller when building FXML in IntelliJ?



In IntelliJ I go to file new fxml file - give a name and a fxml file will be created ... and now ... what have I to do next to get a controller file and connect it to the new window/fxml file

When I start a project the main controller file already exists - for the second window ... just copy the main controller file and rename it? ... is there a place where I have to "load" the new controller ?


Edit: found the connection in fxml file with fx:controller="test.controller"

Have to set new Controller file in SceneBuilder?

8 months ago
Ok, works



I have fxml-Loader and getStylesheets but ...

What about controller file? If I create a new one for the second window - How can I connect both?

Edit: I use IntelliJ - when I create an fxml file - no controller file will be generated


8 months ago
Ok it looks not so difficult

but when I start



Controller



get an unreported exception must be caught declared or to be thrown

8 months ago