javafx

3D surface JavaFX

て烟熏妆下的殇ゞ 提交于 2021-02-19 05:32:14
问题 I am trying to implement my own 3D surface animation in JavaFX but i do not understand everything like it should works, could someone help me with understanding which should go where ? Already know that to build Mesh by using class need class object TraingleMesh and then have to add points by using method mesh.getPoints.addAll(...); but.. my Function<Double, Double> after using apply method does not help me at all, cuz the first argument has to be array float type, not double variable after

Cannot launch a JavaFX Application on MacOS (using Java 8)

怎甘沉沦 提交于 2021-02-19 05:25:05
问题 First time using JavaFX, I'm trying to test it with an Hello World! window. I'm using Java 8 (update 211) with Eclipse on a MacOS with Mojave 10.14.5. I'm working on this project: I put all the JavaFX jar I think I need into the build path (maybe I'm missing some jars?). I'm trying to open a window with JavaFX using this code: import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button;

Cannot launch a JavaFX Application on MacOS (using Java 8)

雨燕双飞 提交于 2021-02-19 05:24:31
问题 First time using JavaFX, I'm trying to test it with an Hello World! window. I'm using Java 8 (update 211) with Eclipse on a MacOS with Mojave 10.14.5. I'm working on this project: I put all the JavaFX jar I think I need into the build path (maybe I'm missing some jars?). I'm trying to open a window with JavaFX using this code: import javafx.application.Application; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.scene.Scene; import javafx.scene.control.Button;

Keep stage maximised after scene change

血红的双手。 提交于 2021-02-19 03:42:31
问题 When I change scenes on my stage with the following code, my stage changes size. However the button in the top right to maximize/minimize the windows says that the stage is still maximized even though it is clearly not. How am I able to keep the stage maximized when a scene change happens? import javafx.application.Application; import javafx.concurrent.Task; import javafx.geometry.Pos; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ScrollPane; import

Javafx concatenation of multiple StringProperty

只愿长相守 提交于 2021-02-18 11:32:16
问题 Is there a simple way to bind a concatenation of StringProperty objects? Here is what I want to do: TextField t1 = new TextField(); TextField t2 = new TextField(); StringProperty s1 = new SimpleStringProperty(); Stringproperty s2 = new SimpleStringProperty(); Stringproperty s3 = new SimpleStringProperty(); s1.bind( t1.textProperty() ); // Binds the text of t1 s2.bind( t2.textProperty() ); // Binds the text of t2 // What I want to do, theoretically : s3.bind( s1.getValue() + " <some Text> " +

Problems with touch input and OpenJDK 11 with JavaFX 11

只愿长相守 提交于 2021-02-18 10:41:08
问题 I'm working on a JavaFX project and would like to switch from Oracle JDK 1.8 to OpenJDK 11. So far the transition has been pretty seamless, but there is still one main problem related to touch/mouse input that's causing some trouble. The JavaFX UI is supposed to run on a touch-enabled device, which used to work straight out of the box with Oracle JDK 1.8. When I touch the screen, the following sequence of mouse events is fired as expected: MOUSE_PRESSED MOUSE_RELEASED MOUSE_CLICKED After

Edit JavaFX CSS at runtime

谁说我不能喝 提交于 2021-02-17 20:54:25
问题 I'm creating a CSS stylesheet for a JavaFX 8 application. I'm repeating these steps several times: Edit the CSS Run the application and see the changes Stop the application I found this approach very time-consuming and looking for something smarter. Is it possibile to edit the CSS of my JavaFX application while running and see the result in real-time? I'm looking for something like the Inspect tool of Google Chrome. This can be partially reached by using Oracle Scene Builder. In fact I can

JavaFX WebView font issue on Mac

。_饼干妹妹 提交于 2021-02-17 20:30:09
问题 Some sites show gibberish characters instead of the correct text. It only happens on Macs. For example with GMapsFX: Online site: Might be related to OS X 10.11 or 10.12. I tested it with Java 1.8.0_121. Is there any fix or workaround for this issue? 回答1: The error, in my case, was not related to system font. I solved the problem by setting the user agent for the web engine. Here is the string I used (Firefox on Windows x64): Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101

JavaFX WebView font issue on Mac

别来无恙 提交于 2021-02-17 20:29:24
问题 Some sites show gibberish characters instead of the correct text. It only happens on Macs. For example with GMapsFX: Online site: Might be related to OS X 10.11 or 10.12. I tested it with Java 1.8.0_121. Is there any fix or workaround for this issue? 回答1: The error, in my case, was not related to system font. I solved the problem by setting the user agent for the web engine. Here is the string I used (Firefox on Windows x64): Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101

JavaFX WebView font issue on Mac

别来无恙 提交于 2021-02-17 20:27:00
问题 Some sites show gibberish characters instead of the correct text. It only happens on Macs. For example with GMapsFX: Online site: Might be related to OS X 10.11 or 10.12. I tested it with Java 1.8.0_121. Is there any fix or workaround for this issue? 回答1: The error, in my case, was not related to system font. I solved the problem by setting the user agent for the web engine. Here is the string I used (Firefox on Windows x64): Mozilla/5.0 (Windows NT x.y; Win64; x64; rv:10.0) Gecko/20100101