javafx

Best way to synchronize countdowntimers in JavaFX

空扰寡人 提交于 2020-02-25 13:18:13
问题 My Programm needs nine Countdowntimers. The timers are started by the user. In my implementation I create a timerclasses for each timer started. The timerclass uses a timeline. Depending on the start of the timers the seconds are asynchrone. I am not sure how to proceed. My first thought were to use only 1 timeline for all countdowns. I would put all stringProperties into a list and the timeline will change the property. I am not so sure if this is a good way? With some google I found out

How to read data from Excel in JavaFX application?

女生的网名这么多〃 提交于 2020-02-25 10:15:34
问题 I am creating a JavaFX FXMl application with hibernate as ORM in Java. I want to read data from Excel and store it to MySQL using hibernate, but it fails to create Workbook. I have spend hours to read tutorials and other posts whether in SO or other sites, neither accepted answers nor comments helped me. In my Form_Main.fxml file I have a button that calls related method to read data from Excel. I have added following JAR files: * poi-4.1.0 * poi-ooxml-4.1.0 * poi-ooxml-schemas-4.1.0 *

Importing, reading from csv file and display it into table view for javafx

青春壹個敷衍的年華 提交于 2020-02-25 06:32:10
问题 I've been stuck in this error for quite sometimes, can anyone point out to me on solving this error? package loadCSV; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import javafx.application.Application; import javafx.beans.property.SimpleStringProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.Group; import javafx.scene.Scene; import

Importing, reading from csv file and display it into table view for javafx

醉酒当歌 提交于 2020-02-25 06:31:56
问题 I've been stuck in this error for quite sometimes, can anyone point out to me on solving this error? package loadCSV; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import javafx.application.Application; import javafx.beans.property.SimpleStringProperty; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.Group; import javafx.scene.Scene; import

JavaFX dynamic resizing

寵の児 提交于 2020-02-25 05:52:20
问题 Thank you for your help. I've been trying to create a ribbon responsive layout like the one in Word, where the items resize one after another, and so far I haven't had much luck with it. custom_control.fxml <fx:root type="javafx.scene.layout.VBox" fx:id="dis" minHeight="-1.0" minWidth="-1.0" prefWidth="350.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/2.2"> <GridPane fx:id="grid"> <children> <Button text="Button" GridPane.columnIndex="0" GridPane.rowIndex="0" />

JavaFX: 2 independent windows at once

不问归期 提交于 2020-02-25 04:07:31
问题 I'd like to create 2 independent windows at once. One window would be able to hold an observable list, the other one would show the selected listobject's properties. I'm trying to create the listview as a generic list, and combine it with an object specific window (eg. customer properties, beer properties, store properties). In short: if the user clicks 'Customers', it shows the listview with all the customers, and the first customer's properties are shown in a seperate, customer-specific

JavaFX: 2 independent windows at once

岁酱吖の 提交于 2020-02-25 04:07:05
问题 I'd like to create 2 independent windows at once. One window would be able to hold an observable list, the other one would show the selected listobject's properties. I'm trying to create the listview as a generic list, and combine it with an object specific window (eg. customer properties, beer properties, store properties). In short: if the user clicks 'Customers', it shows the listview with all the customers, and the first customer's properties are shown in a seperate, customer-specific

JavaFX NullPointerException Location is required NetBeans

余生长醉 提交于 2020-02-24 20:21:19
问题 i've tried anything else i found on stack stackoverflow and i really dont get it why this doesn't work. I won't show you the code of my application that is not working, because it isn't working even with the example project. So here is the problem: When i create new JavaFX Application with the sample code that gives button which prints hello world after clicked, this works when i run this as a desktop application and when i build this and start in browser. This works perfectly as desktop and

How to use arrow buttons to traverse cells in edit mode in TableView

旧街凉风 提交于 2020-02-24 14:11:28
问题 I'd like to use the arrow/enter keys to traverse the cells in TableView , however, if I try to implement it in my custom EditCell class, it doesn't seem to work. Is there a way to make this happen? I've tried a listener on the TextField but it doesn't actually start the focus in the actual cell. Here is my code: Tester.java package tester; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TableCell; import javafx.scene.control.TableColumn; import

How to use arrow buttons to traverse cells in edit mode in TableView

元气小坏坏 提交于 2020-02-24 14:11:27
问题 I'd like to use the arrow/enter keys to traverse the cells in TableView , however, if I try to implement it in my custom EditCell class, it doesn't seem to work. Is there a way to make this happen? I've tried a listener on the TextField but it doesn't actually start the focus in the actual cell. Here is my code: Tester.java package tester; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TableCell; import javafx.scene.control.TableColumn; import