javafx

Executable .jar not running JavaFX - Ecliipse

て烟熏妆下的殇ゞ 提交于 2020-06-29 04:04:28
问题 JDK Version - jdk-13.0.2 : environmental variable added as well as path variable JFX Version - javafx-sdk-13.0.2 : environmental variable added as well as path variable Eclipse Version - 2019-12-R : e(fx)clipse plugin installed : scene builder OS - Windows 10 Now inside eclipse I have configured some things to allow JavaFX to run inside the IDE. So I will list what I have done inside the IDE configurations: Window > Preferences > Java > Installed JRE's > Added jdk-13.0.2 under "Standard VM"

InvocationTargetException when binding to custom class run by JavaFX Concurrent Task

不想你离开。 提交于 2020-06-29 04:04:10
问题 I'm getting InvocationTargetException and NullPointerException when attempting to bind to custom class run by Task. I have working examples of binding to library classes ObeservableList, Long, Integer etc but now need to bind to values of custom class. I created TaskOutput class that includes StringProperty for binding purposes as follows: public class TaskOutput { private final StringProperty textValue = new SimpleStringProperty(); public TaskOutput(String textValue) { this.textValue.set

JavaFX writing bmp image pixel by pixel

岁酱吖の 提交于 2020-06-29 03:37:37
问题 I have written a class to read the BMP files with all the necessary headers as stated here "http://www.ece.ualberta.ca/~elliott/ee552/studentAppNotes/2003_w/misc/bmp_file_format/bmp_file_format.htm" The class reads all the necessary headers and for the raw data, it reads them as bytes as shown below - private byte[] calcBytes(String path) throws IOException { //Get the path of the file Path file_path = Paths.get(path); //Return the byte array of the file return Files.readAllBytes(file_path);

Getting Null Pointer exception and Can't understand why

自作多情 提交于 2020-06-28 08:11:25
问题 My program seems to work fine when scrolling up and down in the main ListView . The problem happens when I open a TitledPane and scroll down or up fast using the mouse scroll-wheel. I also noticed that if I use the mouse to drag the scrollbar after opening a TitledPane , everything works fine. I would like to think that I am very good a spotting and fixing my NullPointer errors, but this one has me baffled. How do I pinpoint the cause of the error and how do I fix it. I can probably figure

Getting Null Pointer exception and Can't understand why

做~自己de王妃 提交于 2020-06-28 08:10:20
问题 My program seems to work fine when scrolling up and down in the main ListView . The problem happens when I open a TitledPane and scroll down or up fast using the mouse scroll-wheel. I also noticed that if I use the mouse to drag the scrollbar after opening a TitledPane , everything works fine. I would like to think that I am very good a spotting and fixing my NullPointer errors, but this one has me baffled. How do I pinpoint the cause of the error and how do I fix it. I can probably figure

How to apply a blur only to a rectangular area within a pane?

别等时光非礼了梦想. 提交于 2020-06-28 06:36:35
问题 Let's say I've got a StackPane which has a BackgroundImage as background and another StackPane (or another component, if neccessary) as a child. The child covers only a part of the parent StackPane . I'd like to know how to apply a GaussianBlur just to the area the child covers, so that the BackgroundImage is blurry in this area. The size of the child changes when the parent is resized. It would be perfect to get a solution that will resize just in time, too. 回答1: If you want to do it

Center children in GridPane using CSS

坚强是说给别人听的谎言 提交于 2020-06-28 06:32:28
问题 I have a GridPane populated with ToggleButtons . First row and column in that GridPane holds Text object labels. I am unable to center the Text objects with the ToggleButton s so the text appears in the middle, using css . (This answer shows how to achieve it by using GridPane.setHalignment(node, HPos.CENTER); ). MCVE if needed : import javafx.application.Application; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.control.ToggleButton; import javafx.scene.layout

Java FX: Bold and Italic styles are not getting applied for some of the font families

别来无恙 提交于 2020-06-28 04:42:06
问题 While applying bold and italic style to all font families, the bold and italic styles gets applied to some of the fonts. In some of the cases like Algerian the bold-italic style does not applied. Is there any way for handling these special cases for Algerian and some similar font families for which bold-italic style does not get applied? import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.text.Font; import javafx.scene.text

button inside column for each row in tableview

回眸只為那壹抹淺笑 提交于 2020-06-28 03:46:37
问题 In my TableView I have column with button for each row for update so I need when click the button to take all the values from the row to a new fxml window This is my contractor class: public class constractor { private String co_id; private String co_name; private String co_address; private String co_create_date; private String co_description; private String co_mobile; private String co_type_compile; private String co_status; private String co_type_model; private Button button; public

JavaFX - force the child of a GridPane to fit the size of the cell

会有一股神秘感。 提交于 2020-06-27 10:25:09
问题 I am trying to force the child of a GridPane to fit the size of the cell it is in. In this case, I am creating a month view calendar and the columns and rows are a set size regardless of what is in it. On this calendar, each cell contains a normal VBox and each VBox contains a label that displays the day of the month and each of the events for that day. Many of the days have no events; some of them have one event; and a few have more than one event. The calendar size is dependent on the