Trouble adding font awesome to scene builder(Missing classes) - javafx

I recently started my school project containing graphics with JavaFX. I added Font Awsome to maven dependencies and classes are fine loaded in the IntelliJ but when I am added its JAR file to scene builder there are only: 1. GlyphCheckBox and 2. GlyphStack and there isn't any FontAwsomeIconView in it.
How should I fix this problem? (I'm using JDK 13, JavaFX 14 and scene builder 11)
<dependency>
<groupId>de.jensd</groupId>
<artifactId>fontawesomefx</artifactId>
<version>8.9</version>
</dependency>

The latest version of FontAwesomeFX (11) is hosted at bintray; the one in maven central (8.9) is not compatible with the the latest JDK because of some old com.sun references in the code.
Open the JAR/FXML Manager in SceneBuilder (dropdown menu in the Library pane)
Add a repository with the URL - https://dl.bintray.com/jerady/maven/
Then you have to add de.jensd:fontawesomefx-commons:11.0 as well as de.jensd.fontawesomefx-fontawesome:4.7.0-11 to get FontAwesomeIconView to show up in the controls list.

Related

How to enable JavaFX in NetbeansIDE 11.3

I can't get JavaFX working with NetBeans 11.3.
The NetBeans documentation says:
If you install JavaFX 2.1 to Windows manually, consider installing the JavaFX 2.1 libraries and runtime to the default location (C:/Program Files/Oracle/). NetBeans IDE checks the default locations for the JavaFX. If JavaFX 2 is in the default locations the IDE can automatically create a JavaFX-enabled Java platform.
I've put the Gluon SDK there, though the number is 11.0.2. NetBeans does not automatically create a JavaFX enabled platform.
This StackOverflow answer suggests cleaning the cache. That didn't help.
If I try to create a new JavaFX project from the IDE, I get the message:
Failed to automatically set-up a JavaFX Platform. Please go to Platform Manager, create a non-default Java SE platform, then go to the JavaFX tab, enable JavaFX and fill in the paths to valid JavaFX SDK and JavaFX Runtime. Note: JavaFX SDK can be downloaded from JavaFX website.
But there is no "JavaFX" tab on the platform manager. The NetBeans release notes way back in version 8.0.2 say:
Unlike previous versions of NetBeans IDE, NetBeans IDE 8.0.2 does not require that you set up an "FX-enabled" Java platform in order to utilize JavaFX support in the IDE. You can develop JavaFX projects in the IDE if you install any standard Java platform that is JDK 7 Update 6 or newer (JDK 7 Update 10 or newer is strongly recommended).
But presumably that is from when JavaFX was bundled in the JDK.
So how do I get NetBeans to recognise the Gluon JavaFX?
Manual workaround:
/nbproject/project.properties file
run.jvmargs=--module-path "D:\\Libraries\\Java9\\openjfx-13.0.2_windows-x64_bin-sdk\\javafx-sdk-13.0.2\\lib" \
--add-modules=javafx.base,javafx.controls,javafx.fxml,javafx.graphics,javafx.media,javafx.swing,javafx.web \
--add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED \
// you may need to add more --ad-exports arguments based on the errors that will crop up during the run phase. this stuff basically removes package access limiters at runtime so be careful.
then there's the compiler arguments
javac.modulepath=\
D:\\Libraries\\Java9\\openjfx-13.0.2_windows-x64_bin-sdk\\javafx-sdk-13.0.2\\lib
and i'm pretty sure you need this too
javac.classpath=\
${libs.JAVAFX13.classpath}:\

fontawesomefx not fully loaded in Gluon SceneBuilder 10

When trying to load the Fontawesomefx jar in Gluon SceneBuilder, not all modules are loaded.
screenshot
I have tried using multiple jar files without any luck.
I'm using Os X 10.12.6 / Gluon Scene Builder 10 / OpenJDK 11.0.1.
The latest version of SceneBuilder can't be installed on my Os version.
Does anyone now how I can fix this?
Thanx
I have same problem when for the first time load JFoenix jar file, not all module included. When i restart my computer, then all module appear. I think it's a bug

How to import Scene Builder .fxml file into new NetBeans Java FX desktop project (OSX)

I'm new to SceneBuilder and have not used NetBeans much. I installed NetBeans and SceneBuilder a couple of days ago and created the GUI I want using SceneBuilder but don't know how to start a project in NetBeans and include the .fxml file. How is that done?

JavaFX Scene Builder Menu object not draggable

I'm new to JavaFX and SceneBuilder.
In SB, I'm trying to place a Menu object in a AnchorPane with a drag and drop and this operation is not being possible as no menu object instance is being dragged.
Also, no drag and drop is being allowed also to the Hierarchy pane of the Library accordion.
The AnchorPane is the one placed by default when the tool is started from NetBeans "new - empty FXML".
This problem doesn't exist to other objects, like buttons.
I'm using Ubuntu 14.04
with:
NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2
Java: 1.7.0_80; Java HotSpot(TM) 64-Bit Server VM 24.80-b11
Runtime: Java(TM) SE Runtime Environment 1.7.0_80-b15
System: Linux version 3.19.0-58-generic running on amd64; UTF-8; en_US (nb)
And:
Product Version
JavaFX Scene Builder 2.0
Build Information
Version: 2.0-b20, Changeset: 5cac093e5c1f
Date: 2014-03-21 09:30
JavaFX
Toolkit = QuantumToolkit
Pipeline = SWPipeline
Hardware acceleration DISABLED
Java
1.8.0-b132, Oracle Corporation
Operating System
Linux, amd64, 3.19.0-58-generic
Any help,please?
Pedro
A Menu is not a Node, so you can't put it in an AnchorPane. You can only put it in a MenuBar. Probably what you want to do is put a MenuBar in the AnchorPane, and then add Menus to the MenuBar. Another option might be to use a MenuButton, depending on exactly what it is you're trying to do.

setting up Scene Builder with NetBeans 8.0.2

I am using:
Mac OS X 10.10.1
NetBeans 8.0.2
SceneBuilder 8.0.0 downloaded from gluonhq.com
I dragged SceneBuilder to Applications folder.
When I go to Options>Java>JavaFX and set Scene Builder path to the Applications folder, I get the error:
Selected location does not represent a valid JavaFX Scene Builder installation
Kindly guide me.
Add Scene Builder to Netbeans 8.2
Here are the steps that I went through to setup Scene Builder:
You can download Scene Builder 8.2 here
Install the package (or run the installer) and find the install location
/opt/SceneBuilder on Ubuntu
C:\Users\{username}\AppData\Roaming\Scene Builder on Windows 10
Then to link it to Netbeans IDE 8.2 go to Tools>Options>Java>JavaFX
Select Browse from the Scene Builder Home drop down menu
Finally navigate to the install location for Scene Builder 8.2 and click Open and then Ok
To enjoy your newly found Scene Builder bliss, right click on a .fxml file in the Project Pane, and select Open.
[Note: One would use the Edit option to edit the .fxml code ]
[Update: You can still download Oracle's JavaFX Scene Builder 2.0 here, but Gluon is now maintaining Scene Builder ]
Create project File > New project > JavaFX > JavaFX FXML Application
Download Scene Builder follow this link
To link Scene Builder(no matter v1.1 or v2.0) do next steps:
Service > Parameters > Java > JavaFX > Scene Builder start page > Preview
and show path to unpacked folder. Confirm.
In your project right click .fxml and click Open.
you can also download a javafx program an you specify well the path where you wan to install your scene builder; on netbeans ... i have the version 8.0.2 then go to tools-> options->javaFX specify exactly the directory where you installed it (scnene builder) i tried on windows. Your project w'll automatically build then go to your file fxml right click and open
Make sure your Java(JDK) version and Scene Builder version must be same. Scene Builder v10 is not compatible with Java v1.8.
When you use NetBeans 8 in Mac OS X, if your NetBeans IDE is running, after installing SceneBuilder, you can not integrate SceneBuilder with NetBeans IDE before restart NetBeans! So the only thing you can do is restarting NetBeans, and NetBeans will find and integrate SceneBuilder.app in Applications folder automatically.

Resources