javafx

Getting error when using Jfoenix 9 controls with JDK 13

点点圈 提交于 2021-01-29 19:31:02
问题 Here is the code that causes the problem <JFXColorPicker layoutX="109.0" layoutY="282.0" /> <JFXCheckBox layoutX="58.0" layoutY="356.0" /> <JFXNodesList layoutX="87.0" layoutY="307.0" /> Here is the error Exception in Application start method java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal

Java FXML Error: Exception in Application start method [duplicate]

浪尽此生 提交于 2021-01-29 19:28:52
问题 This question already has an answer here : How do I determine the correct path for FXML files, CSS files, Images, and other resources needed by my JavaFX Application? (1 answer) Closed 2 months ago . I have created a JavaFX project, and have an error upon running, I suspect the error is within the following main class: import java.io.IOException; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.layout.AnchorPane; import

How to change the fill of an object in a JavaFX Animation?

醉酒当歌 提交于 2021-01-29 19:15:06
问题 I'm developing a simple Java videogame. I've decided to shape the characters of that videogame by using the Rectangle class of JavaFX. When a character dies, I need to update the texture sequentially, until the death of the characters. I need to realize an animation for this reason. I've tried to use the FillTransition , but I can't change the filling Image of the rectangle but only the color...what kind of animation class should I use? The death of a character is represented by 4 different

JavaFX : MediaException: MEDIA_UNSUPPORTED : media type not supported

。_饼干妹妹 提交于 2021-01-29 17:56:38
问题 I need to play the 3gp , mov and mp4 videos in the media player. Right now I am using JavaFx media player but it supports only mp4 videos. So what I can do to play the other two formats as well in this player or is there any other solution also available for this. Any help and suggestions please? jdk = 1.7 JavaFx: 2.1 回答1: Here is a list of JavaFX supported audio and video formats. For anything unsupported by JavaFX, you have the option of either converting them to another format or finding a

Unable to display video in webpage using javaFx Webview (video is live on the given url)

与世无争的帅哥 提交于 2021-01-29 16:27:50
问题 I am trying to display a live webpage in JavaFX Webview . Web page contains a video but that video not playing in javaFX webview . Following is the comple code i am using it also contains the live url of my webpage. I want in my JavaFX web view video should be played through displayed live web page. package webviewbrowser; import java.awt.Dimension; import java.awt.Toolkit; import java.util.List; import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx

JavaFX Stage not visible

匆匆过客 提交于 2021-01-29 16:18:35
问题 I'm trying to write the simplest code to start learning how JavaFX works. Here is my code: package app; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.layout.BorderPane; import javafx.scene.layout.StackPane; import javafx.stage.Stage; public class mainClass extends Application{ Stage primaryStage; public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception {

How to debug a Maven OpenJFX application in IntelliJ

倾然丶 夕夏残阳落幕 提交于 2021-01-29 16:04:22
问题 Since JavaFX has become OpenJFX and needs to be added as a dependency to your Maven project, debugging a OpenJFX application has become complicated. In this question it is already answered how to solve it for NetBeans. But IntelliJ works slightly different. The Ppom.xml has been setup according to this example. How can you run an OpenJFX (JavaFX) application which is configured as a Maven project in debug mode in IntelliJ? 回答1: If you would copy the addition of VM options in the pom.xml for

SQLite on Android via JavaFX and Gluons client-maven-plugin

可紊 提交于 2021-01-29 14:10:48
问题 I am trying to get a JavaFX application, which uses SQLite, running on Android via Gluons client-maven-plugin but for the library with the native part of SQLite I only get an UnsatisfiedLinkError. The app as such runs fine on Android and even works perfectly with SQLite on any desktop platform, so I think my general setup is ok. In this context I wonder whether linking with shared libraries contained in a JAR file is supported at all for Android? which architecture is the right one for

Cannot invoke “javafx.scene.control.ComboBox.getItems()” because the return value of “Controller.getMyBox()” is null

為{幸葍}努か 提交于 2021-01-29 14:10:06
问题 Somehow, I cannot add items to my ComboBox variable from another class as it always says either the value of variable is null or the return value of its getter is null. I use Scene Builder to build Sample.fxml, with controller as Controller class, luanch the whole thing form UserInterface class FXML <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.ComboBox?> <?import javafx.scene.layout.BorderPane?> <BorderPane xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http:/

JavaFX WebView: custom cursors not working?

南笙酒味 提交于 2021-01-29 12:12:00
问题 I tried to get css custom cursors to work with Java WebView within a tag, to no avail. For example: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.layout.VBox; import javafx.scene.web.WebView; import javafx.stage.Stage; public class Main extends Application { public static void main(String[] args) { launch(args); } public void start(Stage primaryStage) { primaryStage.setTitle("JavaFX WebView Example"); WebView webView = new WebView(); String cursorUrl =