javafx

OpenJFX Custom runtime image using Maven and jlink - Module exports or command line arguments?

爱⌒轻易说出口 提交于 2021-01-01 07:06:57
问题 I'm trying to create a custom runtime image that will not require installed JRE/JDK on the computer. I have followed the tutorial presented on OpenJFX Documentation (JavaFX and IntelliJ - Modular with Maven) and I am able to run the created image, but I want to include for my application class com.sun.glass.ui.Window (in module javafx.graphics). Before custom images, I was parsing as command line arguments the following: --add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED I want to

OpenJFX Custom runtime image using Maven and jlink - Module exports or command line arguments?

江枫思渺然 提交于 2021-01-01 07:05:38
问题 I'm trying to create a custom runtime image that will not require installed JRE/JDK on the computer. I have followed the tutorial presented on OpenJFX Documentation (JavaFX and IntelliJ - Modular with Maven) and I am able to run the created image, but I want to include for my application class com.sun.glass.ui.Window (in module javafx.graphics). Before custom images, I was parsing as command line arguments the following: --add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED I want to

Run button is greyed out - intellij

烈酒焚心 提交于 2021-01-01 02:44:21
问题 I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem? PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all. 回答1: This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited

Run button is greyed out - intellij

爷,独闯天下 提交于 2021-01-01 02:43:44
问题 I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem? PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all. 回答1: This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited

Run button is greyed out - intellij

倖福魔咒の 提交于 2021-01-01 02:42:06
问题 I was working on a project in Intellij then suddenly there was a pop up and now the run button is greyed out. It is a Java FX project and it runs with coverage and debug, but the normal run button is greyed out. What could be the problem? PS: I know I don't give you much to work with but unfortunately it was working and now it isn't, that's all. 回答1: This has happened to me countless times. One possible problem is that the program is still running in the background and hasn't exited

Javafx StackedBarChart bug

余生颓废 提交于 2020-12-31 15:22:18
问题 I'm developing an application using some StackedBarChart but i've found what i think is a little bug, negative values are not rendered if the animated property of the chart is set to false. Try the code below to test it, anyone know how to solve it ? Thanks in advance. import javafx.application.Application; import javafx.application.Platform; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.chart.CategoryAxis; import javafx.scene.chart.NumberAxis; import javafx

How can I change the color of a JFXSlider's thumb according to the color of the slider at the current position of the thumb on the slider?

跟風遠走 提交于 2020-12-30 02:21:42
问题 I'm using a JFXSlider in JavaFX and I've used a linear gradient for the color of the JFXSlider 's track (with CSS). However, I'd also like to change the color of the thumb to that of the slider for that position. I've used the following CSS for the slider's linear gradient and for getting rid of the default green color of the JFXSlider : .jfx-slider .track { -fx-pref-height: 10; -fx-background-color: linear-gradient(to right,red,orange); } .jfx-slider .colored-track { -fx-background-color:

Dynamically change JavaFX css property

痞子三分冷 提交于 2020-12-29 08:06:30
问题 In my FXML I have a simple slider: <Slider fx:id="timeSlider" showTickLabels="true" GridPane.rowIndex="3" GridPane.columnIndex="0" GridPane.columnSpan="4"/> This slider is part of a desktop music application I am writing and it signifies how far into the song has been played. I have written a change event that is called everytime the the song time is changed, and this successfully accomplishes sliding the knob/thumb down. Now I am trying to also to color the left part (already played) blue

Dynamically change JavaFX css property

非 Y 不嫁゛ 提交于 2020-12-29 08:04:10
问题 In my FXML I have a simple slider: <Slider fx:id="timeSlider" showTickLabels="true" GridPane.rowIndex="3" GridPane.columnIndex="0" GridPane.columnSpan="4"/> This slider is part of a desktop music application I am writing and it signifies how far into the song has been played. I have written a change event that is called everytime the the song time is changed, and this successfully accomplishes sliding the knob/thumb down. Now I am trying to also to color the left part (already played) blue

How to run javafx applications in intellij idea IDE

拈花ヽ惹草 提交于 2020-12-29 04:46:47
问题 I am trying to run JavaFX application but there is showing the following error Error: JavaFX runtime components are missing, and are required to run this application Until this step, I could not import the JavaFX, and I have done it from /usr/lib/jvm/java-8-openjdk-amd64 Can someone help to solve this error? Thanks beforehand. By the way, I am using lubuntu operating system extra information 回答1: As explained on official OpenJFX website open your intellij idea IDE and create new Project Go to