O(1) access to rows in TableView by Key lookup?

2019-06-30 Thread Andrew Munn
I have a question similar to this one: https://stackoverflow.com/questions/16941980/populate-tableview-with-observablemap-javafx I have a TableView in which rows can be added/updated/deleted. I want to be able to delete rows in a TableView without having to iteratively search the collection of

getting height of TableView?

2019-06-26 Thread Andrew Munn
I have a question similar to this one: https://stackoverflow.com/questions/27945817/javafx-adapt-tableview-height-to-number-of-rows I have a table that rows are added & removed from. I want the SplitPane holding the table to resize itself as needed.

NPE when restoring window size/position

2019-06-13 Thread Andrew Munn
I frequently get an NPE when calling stage.show() after restoring window size/location on startup. I can prevent it by calling stage.setX(value) with a smaller X value before calling stage.show(). I filed this bug: https://github.com/javafxports/openjdk-jfx/issues/492 Does anyone have a

Framework for saving window positions, etc?

2019-04-19 Thread Andrew Munn
What are best practices for saving users' window positions, sizes, table column order/width, etc so these things are restored on startup? Is there a good framework for this or do you just roll your own?

Re: FxApplicationThread usage with

2019-04-16 Thread Andrew Munn
non I/O intensive tasks you can set values directly. > > If you do I/O intensive tasks outside a Task<> or Service<> the UI will > block (show a white screen or any non-desirable behaviour). > > > ------ > *De:* openjfx-dev em nome de > A

FxApplicationThread usage with

2019-04-15 Thread Andrew Munn
I have a table where column values are bound to row objects' properties like this column.setCellValueFactory(ex -> ex.getValue().getSomeProperty()); Should I always call... someProperty.setValue(updatedValue); ...in the FxApplicationThread, or does binding it to the TableColumn take care

Re: ClassCastException from DoubleStringConverter

2019-04-02 Thread Andrew Munn
ang.String are in module java.base of loader 'bootstrap') On Tue, 2 Apr 2019, Andrew Munn wrote: > This happens in FX 11.0.2 and 12. I declare a column for Doubles... > > @FXML > private TableColumn myColumn; > > When I add this code: > myColumn.setCellFactory(TextFi

ClassCastException from DoubleStringConverter

2019-04-02 Thread Andrew Munn
This happens in FX 11.0.2 and 12. I declare a column for Doubles... @FXML private TableColumn myColumn; When I add this code: myColumn.setCellFactory(TextFieldTableCell.forTableColumn(new DoubleStringConverter())); I get this exception: Exception in thread "JavaFX Application Thread"

EventHandler not working in 11.0.2

2019-03-27 Thread Andrew Munn
How do I listen for mouse events in 11.0.2? IntelliJ's code completion suggests this: textField.addEventHandler(MouseEvent.MOUSE_ENTERED, (EventHandler) t -> { // do something }); but it fails to compile with error: cannot find symbol T Thanks

Re: Java-FX 11. Missing toolkit? Error initializing QuantumRenderer

2018-10-15 Thread Andrew Munn
t/javafx-sdk-11/lib/prism_es2.so > > -- Kevin > > > On 10/15/2018 12:36 PM, Andrew Munn wrote: > > I'm using x2go to connect to a session running the Mate window manager and > > seein this error. Could it be related to a missing jfxrt.jar? I don't > > see that ja

Java-FX 11. Missing toolkit? Error initializing QuantumRenderer

2018-10-15 Thread Andrew Munn
I'm using x2go to connect to a session running the Mate window manager and seein this error. Could it be related to a missing jfxrt.jar? I don't see that jar under /opt/javafx-sdk-11 I'm starting my application with these: --add-opens javafx.fxml/javafx.fxml=ALL-UNNAMED"