Using the client-maven-plugin version 0.1.27 I am able to generate an exe file for a very simple sample which is consist of an HBox with a button all inside a StackPane as the root pane of scene.
The exe when launched does nothing if I depend the project on javafx-controls version 14.0.1 but it works if depending on version 14.
The weird thing is that if I use TableView it is simply not working (exe generated) using javafx-conrols version 14. The source code and pom.xml content are inserted here.
My machine settings are:
Windows 8
openjdk version "11.0.1" 2018-10-16
graalvm-ce-java11-windows-amd64-20.2.0
The App.java source code
package com.mycompany.gluonnew;
import javafx.application.Application;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.Scene;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
/**
* JavaFX App
*/
public class App extends Application
{
// private TableView<X> table;
public static class X
{
int a;
public X(int a)
{
this.a = a;
}
public int getId()
{
return a;
}
public void setA(int a)
{
this.a = a;
}
}
@Override
public void start(Stage stage)
{
TableView<X> table = new TableView<>();
for (int i = 0; i < 100; i++) {
TableColumn<X, Integer> a = new TableColumn<>("A" + i);
a.setCellValueFactory(p -> new SimpleObjectProperty<>(p.getValue().getId()));
a.setCellFactory((TableColumn<X, Integer> p) -> new TableCell<>()
{
@Override
protected void updateItem(Integer item, boolean empty)
{
if (empty || item == null)
super.updateItem(item, empty);
else
setText(item + "");
}
});
table.getColumns().add(a);
}
for (int i = 0; i < 100; i++) {
table.getItems().add(new X(i));
}
var scene = new Scene(new StackPane(table), 640, 480);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args)
{
launch();
}
}
Hi there,
This is related to #88 but not the same
Using the client-maven-plugin version 0.1.27 I am able to generate an exe file for a very simple sample which is consist of an HBox with a button all inside a StackPane as the root pane of scene.
The exe when launched does nothing if I depend the project on javafx-controls version 14.0.1 but it works if depending on version 14.
The weird thing is that if I use TableView it is simply not working (exe generated) using javafx-conrols version 14. The source code and pom.xml content are inserted here.
My machine settings are: Windows 8 openjdk version "11.0.1" 2018-10-16 graalvm-ce-java11-windows-amd64-20.2.0
The App.java source code
The pom.xml file
Would you please help me on this?