javafx

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

Add delay after Platform.runLater runnable

别说谁变了你拦得住时间么 提交于 2020-01-06 15:59:10
问题 I'm really beginner with javaFX and probably I'm missing something, but here my issue: I should show some changes in my gui application sequentially. My code looks like this (each method performs a change in the gui, but the final result is given by the last method of course): public void updateGui() { Platform.runLater(() -> { doFirstStuff(); doSecondStuff(); doThirdStuff(); }); } It would be nice if between the execution of each method there was a little delay (1,2 or maybe 3 seconds) for

JavaFX ScrollPane on Android - Too Slow

百般思念 提交于 2020-01-06 15:42:34
问题 I have just coded a simple example of using a scrolling pane in JavaFX. Just one ScrollPane placed in the Scene, and the ScrollPane holds a Label component with a large text. Using gradle I have uploaded the app on a Nexus 4 android device. As you can see from the video I have uploaded, the scrolling is way too slow. I am sure others have experienced this. Any suggestion of how this can be changed to the native speed scroll is really much appreciated. Source code of the app can be downloaded

Java client / server thread null pointer exception when quickly communicating messages

余生颓废 提交于 2020-01-06 15:07:56
问题 I'm using JavaFX to create a simple messenger client. The classes in question are: MainMenuController.class: this class handles JavaFX ui logic such as printing chat messages to text area Server.class: controls server socket and in/out logic Client.class: controls client socket and in/out logic I'm able to run the application perfectly on local host, except my program throws a nullpointerexception when I try to send messages too quickly. I'll past the relevant code, and then I'll explain what

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

Disabling Button while TextFields empty not working

亡梦爱人 提交于 2020-01-06 14:16:12
问题 BooleanBinding bb = new BooleanBinding() { { super.bind(addnum.textProperty(),addt1.textProperty(),addt2.textProperty(), addt3.textProperty(),addasg.textProperty(),addatt.textProperty()); } @Override protected boolean computeValue() { return (addnum.getText().isEmpty() && addt1.getText().isEmpty() && addt2.getText().isEmpty() && addt3.getText().isEmpty() && addasg.getText().isEmpty() && addatt.getText().isEmpty()); } }; final Button b2 = new Button("Add"); b2.disableProperty().bind(bb); This