All Questions
16
questions
2
votes
0
answers
72
views
Is the WindowProcedure always called in the JavaFX Application Thread?
In a JavaFX app, if I use the JNA to implement a custom window procedure, will the callback always be on the JavaFX Application Thread?
public class MyWindowProc implements WinUser.WindowProc
...
...
0
votes
3
answers
832
views
JavaFX: I need to set a value from an Event Handler to a variable
I need a way to get the value from a textfield to a variable when a button is clicked.
I understand I may need to use a callback but I have never used one and I am not sure how to implement one in ...
0
votes
0
answers
224
views
How to use a LocalDate as the column of a TreeTableView / TableView
New to JavaFX, I have just learned how to set a cell value factory using a Callback: in Groovy this is like this:
fxmlController.treeTableView.columns.get( 0 ).cellValueFactory =
new Callback&...
3
votes
1
answer
70
views
How to pass different Generics in a Callback Class?
For a JFXTreeTableColumn I wrote a custom Cell Factory as Callback. Code works fine but what if I want to pass different Generics?
I already tried to pass the Generics as ? or T, S but I definitely ...
0
votes
1
answer
158
views
Can we Create a callback between multiple classes in javafx
What I mean is ,
if class A needs data from another class B, and that data is supplied to class B from class C ,
then class B gives data to class A (combining of data the data from class C and ...
0
votes
1
answer
301
views
editable listview with custom object
So I have a listview filled with Objects of the class Tree, I want to be able to edit and add new items of the class tree to the listview and if possible when an item is selected and I press the ...
1
vote
1
answer
287
views
Is it safe to rely on javafx.util.Callback?
Is it safe to use the javafx.util.Callback on a server machine? As I understand, and I may be wrong, not all JavaFX components are available on a server installation where graphics arent available.
...
6
votes
3
answers
279
views
How to surround a callback invocation with another piece of code in a best way?
I have a simple, functional interface:
public interface Callback<T> {
void invoke(T param);
}
I make many asynchronous operations like:
public void getSubfolders(Folder folder, Callback&...
0
votes
0
answers
868
views
JavaFX setCellValueFactory Method Calling More Times
I've created a tableView. But its setCellValueFactory methods calling two or more times. And it causes a bug. What can be reason of this? Below, my Person and Controller classes.
Person.java
public ...
0
votes
2
answers
180
views
No inference in Generic Callback JavaFX
I have a TextFieldTableCell<Item,String> that I need to validate, therefore I can't use the usual way of
column.setCellFactory(TextFieldTableCell.forTableColumn());
So my intention was to do ...
0
votes
1
answer
57
views
Managing different JavaFX stages through a signle slass
I'm writing a simple JavaFX application that has three Stages: Login, Register (Anmeldung) and Welcome (Anwendung). Sorry for the German namings!
I have created each Stage and it's Scene in an App ...
2
votes
0
answers
1k
views
Serialization of a Callback
My application has some settings that can be configured, and some generate warnings. I need a way to preserve those warnings even if the application has been closed.
My warnings are structured as it ...
0
votes
0
answers
115
views
How to delete Cell Factories references
I have a JavaFx application which allows to open detached windows. The detached windows are loaded from fxml files. Within the fxml there is a table with columns. When a window is closed (stage ...
0
votes
0
answers
197
views
javafx ActionListener for CheckBoxTableCell
I tried both solutions of this question here :JavaFX: CheckBoxTableCell get ActionEvent when user check a checkBox
The first solution did not work for me but at least my IDE compiled.
The 2nd ...
0
votes
0
answers
24
views
callback nullpointer exception [duplicate]
I've been experiencing some problems with trying to get a callback to work. It constantly gives me this error:
java.lang.NullPointerException
at Networking.JRNetworking.JRNet_Receiver.onReceive(...