javafx

Java 13: Why are javaFX runtime components missing?

ぐ巨炮叔叔 提交于 2020-05-28 07:02:09
问题 Error Message: Error: JavaFX runtime components are missing, and are required to run this application LOOK HERE: project structure photo I have downloaded the javafx extentions for the project as well as the jar file and attached it, the program knows javafx is there since the code errors went away. However, it then said there were no docs and no it says there's no JavaFx runtime components. I have been hiting error after error trying to get javafx to just run a hello world program in eclipse

How to export javaFX 14 app to executable in IntelliJ?

这一生的挚爱 提交于 2020-05-24 05:33:13
问题 I wanna export my app to PC and Android devices. If i create a JavaFX project with sdk 13.0 and try to export as a JavaFX application it says fx:deploy not supported. So i tried gluon plugin. But when i open a project i cant run even the empty scene. I found one tutorial on the internet how to do that, but he had inside the build.grandle some long settings, and i have only one line apply plugin: 'base' And i get this error every time The project uses Gradle 4.3.1 which is incompatible with

How to add images to a ListView

♀尐吖头ヾ 提交于 2020-05-24 05:08:32
问题 I've been reading documents for the last 8 hours and found nothing that could help me. Vaguely yes, but no code is working becuase it keeps saying "image url not found" and throws the exception. However I have other projects and never had this issue. So, there's one class that contains months like so: public enum Month{JAN(1, "img.png",...DEC(12, "img.png"); private final int monthValue; private final String imgName; private Month(int monthValue, String imgName){ this.monthValue = monthValue;

javafx NullPointerException with controlsfx Notifications componnets

不打扰是莪最后的温柔 提交于 2020-05-23 15:54:05
问题 I want to develop an application that uses controlsfx Notifications to show some notifications in system tray mode. In normal mode my application works well and notification can be shown successfully.but when I hide stage in system tray , NullPointerException occurs. I don't know how i can fix this problem. import java.awt.AWTException; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.Toolkit; import java.awt.TrayIcon; import java.awt.event

javafx IllegalArgumentException (is already set as root of another scene)

♀尐吖头ヾ 提交于 2020-05-23 12:51:09
问题 I have problem with changing scenes in my application which looks like Main screen > Login screen I am storing screens in main file as hashmap<String, Node> and everything is good until I go back from login screen to main screen and want to load the login screen again, here is exception and code: java.lang.IllegalArgumentException: AnchorPane@30561c33[styleClass=root]is already set as root of another scene public static final HashMap<String, Parent> pages = new HashMap<>(); @FXML private void

how to add a searching bar using JavaFX (java)

放肆的年华 提交于 2020-05-21 07:14:22
问题 As the question is indecating I need a way to add a searching bar using javaFX so I tried many solutions and I found this one : https://stackoverflow.com/a/47560767/13414383 but in her case she is using a FilteredList which gave her the hand to use setPredicate methode but in my case I'm using a ObservableSet so is there is any solution to add a filter on a ObservableSet so I can add a searching bar ? Here is my code : public class Test extends Application { String mainPath=index.target

How do I determine the correct path for FXML files, CSS files, Images, and other resources needed by my JavaFX Application?

亡梦爱人 提交于 2020-05-19 07:47:53
问题 My JavaFX application needs to be able to find the FXML files to load them with the FXMLLoader , as well as stylesheets (CSS files) and images. When I try to load these, I often get errors, or the item I'm trying to load simply doesn't load at runtime. For FXML files, the error message I see includes Caused by: java.lang.NullPointerException: location is not set For images, the stack trace includes Caused by: java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found

How do I determine the correct path for FXML files, CSS files, Images, and other resources needed by my JavaFX Application?

佐手、 提交于 2020-05-19 07:46:34
问题 My JavaFX application needs to be able to find the FXML files to load them with the FXMLLoader , as well as stylesheets (CSS files) and images. When I try to load these, I often get errors, or the item I'm trying to load simply doesn't load at runtime. For FXML files, the error message I see includes Caused by: java.lang.NullPointerException: location is not set For images, the stack trace includes Caused by: java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found

How do I determine the correct path for FXML files, CSS files, Images, and other resources needed by my JavaFX Application?

你说的曾经没有我的故事 提交于 2020-05-19 07:46:11
问题 My JavaFX application needs to be able to find the FXML files to load them with the FXMLLoader , as well as stylesheets (CSS files) and images. When I try to load these, I often get errors, or the item I'm trying to load simply doesn't load at runtime. For FXML files, the error message I see includes Caused by: java.lang.NullPointerException: location is not set For images, the stack trace includes Caused by: java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found

JavaFX: Can a node's tranforms be safely manipulated from a non-UI thread? [duplicate]

余生长醉 提交于 2020-05-17 06:25:28
问题 This question already has an answer here : Update JavaFX Live nodes outside Application Thread (1 answer) Closed 5 months ago . I've been working on a robot simulator using javafx. It uses a separate thread to calculate where the robot and each of its parts should be after each time increment. The actual updating of the UI is handled with a call to Platform.runLater() . Here is an example of how a node (in this case a Rectangle) called leftFinger would be manipulated: First, in the Controller