javafx

Deploy JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14

♀尐吖头ヾ 提交于 2021-02-07 07:58:22
问题 I am developping a JavaFX application using gradle 6.3, OpenJDK 14 and OpenJFX 14 with IntelliJ and I want to deploy it (create a exe file). I used to make JavaFX applications with JDK 8 under Netbeans 11 and the process was simple: Make the application Clean and build Look for the jar in the dist folder (which works perfectly when I click on it) convert it to exe using Launch4j Voilà! Since I am migrating to OpenJDK 14, I wanted to make sure I can deploy the app I am making, so I created an

Eclipse cannot find module even the module path is explicitly provided

≯℡__Kan透↙ 提交于 2021-02-07 06:15:50
问题 I have created a module com.company.ep that is located in the source folder com.company.ep . (Yes, I have removed src from the build path and deleted it!) Inside the source folder, I have a couple of packages as the following: com.company.ep <--- root source folder com.company.ep.main <--- package 1 com.company.ep.model <--- package 2 com.company.ep.view <--- package 3 // ... more packages module-info.java The main class is located in the package com.company.ep.main.Main . In my module-info

Eclipse cannot find module even the module path is explicitly provided

懵懂的女人 提交于 2021-02-07 06:13:01
问题 I have created a module com.company.ep that is located in the source folder com.company.ep . (Yes, I have removed src from the build path and deleted it!) Inside the source folder, I have a couple of packages as the following: com.company.ep <--- root source folder com.company.ep.main <--- package 1 com.company.ep.model <--- package 2 com.company.ep.view <--- package 3 // ... more packages module-info.java The main class is located in the package com.company.ep.main.Main . In my module-info

Eclipse cannot find module even the module path is explicitly provided

六月ゝ 毕业季﹏ 提交于 2021-02-07 06:11:58
问题 I have created a module com.company.ep that is located in the source folder com.company.ep . (Yes, I have removed src from the build path and deleted it!) Inside the source folder, I have a couple of packages as the following: com.company.ep <--- root source folder com.company.ep.main <--- package 1 com.company.ep.model <--- package 2 com.company.ep.view <--- package 3 // ... more packages module-info.java The main class is located in the package com.company.ep.main.Main . In my module-info

WebView NullPointerException using JavaFX

狂风中的少年 提交于 2021-02-07 04:28:21
问题 Recently adding a WebView pane to my JavaFX Application. When resizing my program I get this error and the program freezes. java.lang.NullPointerException at com.sun.javafx.webkit.prism.WCPageBackBufferImpl.validate(WCPageBackBufferImpl.java:97) at com.sun.webkit.WebPage.paint(WebPage.java:644) at com.sun.javafx.sg.prism.NGWebView.renderContent(NGWebView.java:95) at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2067) at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1959) at com.sun

Javafx Task - update progress from a method

流过昼夜 提交于 2021-02-06 13:22:44
问题 In a JavaFX application I wish to update a status bar according to some work logic which I've implemented in an other class. I can't figure out how to combine my desire to pass to work logic to the method (and not to write it inside the task) and to know about the work progress percentage. This is an example of the controller with the Task: public class FXMLDocumentController implements Initializable { @FXML private Label label; @FXML ProgressBar progressBar; @FXML private void

Javafx Task - update progress from a method

痴心易碎 提交于 2021-02-06 13:00:55
问题 In a JavaFX application I wish to update a status bar according to some work logic which I've implemented in an other class. I can't figure out how to combine my desire to pass to work logic to the method (and not to write it inside the task) and to know about the work progress percentage. This is an example of the controller with the Task: public class FXMLDocumentController implements Initializable { @FXML private Label label; @FXML ProgressBar progressBar; @FXML private void

Javafx Task - update progress from a method

时光毁灭记忆、已成空白 提交于 2021-02-06 12:59:41
问题 In a JavaFX application I wish to update a status bar according to some work logic which I've implemented in an other class. I can't figure out how to combine my desire to pass to work logic to the method (and not to write it inside the task) and to know about the work progress percentage. This is an example of the controller with the Task: public class FXMLDocumentController implements Initializable { @FXML private Label label; @FXML ProgressBar progressBar; @FXML private void

Javafx Task - update progress from a method

半腔热情 提交于 2021-02-06 12:59:05
问题 In a JavaFX application I wish to update a status bar according to some work logic which I've implemented in an other class. I can't figure out how to combine my desire to pass to work logic to the method (and not to write it inside the task) and to know about the work progress percentage. This is an example of the controller with the Task: public class FXMLDocumentController implements Initializable { @FXML private Label label; @FXML ProgressBar progressBar; @FXML private void

Javafx combobox not updating dropdown size upon change on realtime?

淺唱寂寞╮ 提交于 2021-02-06 11:33:53
问题 I am using Javafx v8.0.25-b18. The problem I occur is that the size of the dynamic combox's dropdown list doesn't change, so if I had initially two items in the dropdown, then the dropdown size will be good for two items, but if I now populate the dynamic combox with three items then I get a small scrollbar inside!?, If I remove an item - I will have a blank space in the combox !? I want to "reset" the dropdown size each time I put values into it, so it will be the right size each time it