javafx-8

How to show a list on table column, with few fields of list items

早过忘川 提交于 2020-01-07 03:34:53
问题 UPDATE : This qustion moved to TableColumn should only show one specific value of a complex data type because it's more specific I want to populate a table with a complex data type Person containing name , id and a List<Person> . At the moment I get a table with the correct name , id and a third column with the whole information of other Person s but it should only show the name of the Persons s. Is there any way that my third column shows only the Person.getName() values? Keywords, solutions

JAVA FX - Hide stage lost service task response

喜你入骨 提交于 2020-01-06 19:33:35
问题 In this post i was answer why my UI was blocking after service.start() call, and it is resolved. Now I have another "little" problem... after start() the service I will hide/close the stage to run the application on TrayIcon. I've noticed that with hide()/close() the stage, the Service will be blocked and never go in SUCCEEDED status. I've tried to remove this call and all works. How I can hide()/close() my stage without block the Service thread and so receive the answer for minimize on tray?

How to plot multiple series with javafx line chart which is in array list

跟風遠走 提交于 2020-01-06 18:04:17
问题 There is no error but there is an issue with the plot am not getting the correct line chart plot, I want parameters in the x-axis and values in the y-axis but I have 3 engines as series but the series is not adding but the last series is only adding up. kindly help me with this issue. What I am trying to do is: Suppose I have n engines and m parameters of the engines, if I have 4 engines and 30 parameters then the total value will be n x m which is 4x30=120 so I want to plot engines in one

How to plot multiple series with javafx line chart which is in array list

懵懂的女人 提交于 2020-01-06 18:02:33
问题 There is no error but there is an issue with the plot am not getting the correct line chart plot, I want parameters in the x-axis and values in the y-axis but I have 3 engines as series but the series is not adding but the last series is only adding up. kindly help me with this issue. What I am trying to do is: Suppose I have n engines and m parameters of the engines, if I have 4 engines and 30 parameters then the total value will be n x m which is 4x30=120 so I want to plot engines in one

How to plot multiple series with javafx line chart which is in array list

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 18:02:13
问题 There is no error but there is an issue with the plot am not getting the correct line chart plot, I want parameters in the x-axis and values in the y-axis but I have 3 engines as series but the series is not adding but the last series is only adding up. kindly help me with this issue. What I am trying to do is: Suppose I have n engines and m parameters of the engines, if I have 4 engines and 30 parameters then the total value will be n x m which is 4x30=120 so I want to plot engines in one

How to seperate Javafx(non fxml) to a fxml and a controller? (Invocation target exception)

不羁岁月 提交于 2020-01-06 17:59:36
问题 I am building a application which can show live feed from my webcam. So I have been searching for sample codes as there was no webcam support in JavaFX and finally I found the code (javaFX+ OpenCV). But I am using fxml for my application and the sample code I found is a Non-Fxml. The following code is the sample code which I am not able to break it into FXML and its controller From here I find 2 ways 1:To break the non-fxml code 2:To use the non-fxml sample code in my application. So is it

How to seperate Javafx(non fxml) to a fxml and a controller? (Invocation target exception)

久未见 提交于 2020-01-06 17:59:27
问题 I am building a application which can show live feed from my webcam. So I have been searching for sample codes as there was no webcam support in JavaFX and finally I found the code (javaFX+ OpenCV). But I am using fxml for my application and the sample code I found is a Non-Fxml. The following code is the sample code which I am not able to break it into FXML and its controller From here I find 2 ways 1:To break the non-fxml code 2:To use the non-fxml sample code in my application. So is it

TableCell not applied consistently

旧城冷巷雨未停 提交于 2020-01-06 14:54:05
问题 When running the program below, the TableCell is not applied (the numbers are left aligned instead of right aligned). Clicking on the "Change Values" button corrects the alignment. Using jdk1.8.0-ea-b114 Am I missing anything obvious or is it a bug? import java.util.Arrays; import javafx.application.Application; import javafx.beans.property.DoubleProperty; import javafx.beans.property.SimpleDoubleProperty; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control

Is JavaFX supported in Openjdk?

别说谁变了你拦得住时间么 提交于 2020-01-06 14:53:45
问题 Does OpenJDK 8 includes JavaFX support like Oracle Java does? I know there is package (at least for Ubuntu) called OpenJFX, but I'm not sure why that's not included in OpenJDK 8 回答1: Yes, you can. Java is platform-agnostic. By the way you can also use Oracle JDK on Linux. 回答2: The word "supported" means different things to different people. Here is the official JavaFX Supported Configurations page which describes the various platforms on which JavaFX2 is "certified". The page makes no mention

How to intercept MouseEvent.MOUSE_CLICKED on TableView on JavaFX8

一世执手 提交于 2020-01-06 13:29:36
问题 I am creating a custom CheckBoxTableView where the selected items are displayed with a CheckBox. If the user attempts to sort the table once items are selected, it appears to mess up. I would like to prompt the user to see if they would like to continue. If so, I would like to clear the selection, if not, simply consume the event so the sorting doesn't happen. Unfortunately - my EventFilter seems to fire after the sort was completed. On the TableView constructor, I placed the following code: