#JavaFX setup HELP
1 messages · Page 1 of 1 (latest)
<@&987246487241105418> please have a look, thanks.
JavaFX Tutorials
Official Documentation
- Project Setup: https://openjfx.io/openjfx-docs/
- API JavaDocs: https://openjfx.io/javadoc/23/
- Introduction to FXML: https://openjfx.io/javadoc/23/javafx.fxml/javafx/fxml/doc-files/introduction_to_fxml.html
- CSS Reference: https://openjfx.io/javadoc/23/javafx.graphics/javafx/scene/doc-files/cssref.html
Community & Tutorials
- FXDocs: https://fxdocs.github.io/docs/html5/
- Jenkov Tutorials: https://jenkov.com/tutorials/javafx/index.html
- Fundamentals (dev.java): https://dev.java/learn/javafx/
Additional Tools:
- Scene Builder: https://gluonhq.com/products/scene-builder/
the first link helps with project setup
did you follow the tutorial?
yes.
This tutorial was our only guid, which the prof has suggested
did you do step 5? Add VM options?
yes
I checked it again and it's correct.
I have added VM option.
--module-path "C:\JavaFX\javafx-sdk-21.0.7\lib" --ad d-modules javafx.controls,javafx.fxml
are you using a build tool?
no what's that?
Can i just screenshare to you guys so i'll get it done ? I would appreciate it
tools like Maven or Gradle. NetBeans typically starts you out with a build tool
most IDEs have build tools included. they help you build your project. one of the ways they help is by including dependencies
does your project have a pom.xml? or a build.gradle?
(its uni context so build tool is probably no)
how did you create your netbeans project?
the project wizard should have almost forced you to use a build tool, for netbeans at least
you dont wanna use arguments for this, creates problems when you package the app
users would have to run through a terminal & provide the arguments each time they wanted to run your app. a build tool can help package it neatly, so they wont have to
I tried two different ways :
- project - > java with Ant -> javaFX -> javaFX app
- project - > java with Ant -> java app -> manually enable the javaFX and addin the lib
dont use Ant. thats another build tool
select Maven or Gradle
okay let me try again
from there, you can follow the start-up guide for FX, which will help you build the app smoothly
you mean this here right?
yup
okay, thank you. Imma try it now
Ant is a very primitive build tool. these days, people use Maven or Gradle
thats why theres no Ant guide
hey i decided to install IntelliJ and it works fine.
Thanks for your help 🙂
Now i gotta make the buttons