Skip to content

Commit c90fdc4

Browse files
feat: update to recently release ControlsFX lib
1 parent c1a44b6 commit c90fdc4

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins {
99

1010
dependencies {
1111
// ControlsFX
12-
implementation ('org.controlsfx:controlsfx:11.0.0-RC2') {
12+
implementation ('org.controlsfx:controlsfx:11.0.1') {
1313
exclude group: 'org.openjfx', module: '*'
1414
}
1515

@@ -66,7 +66,12 @@ application {
6666
"--add-opens=javafx.base/com.sun.javafx.event=ALL-UNNAMED",
6767
"--add-opens=javafx.base/com.sun.javafx.collections=ALL-UNNAMED",
6868
"--add-opens=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED",
69-
// XXX many more necessary depending on control
69+
"--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED",
70+
"--add-opens=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED",
71+
"--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED",
72+
// "--add-opens=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
73+
// "--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
74+
// "--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED",
7075

7176
// necessary for Jasperreports XML parsing
7277
// https://github.com/TIBCOSoftware/jasperreports/issues/61

src/main/java/com/example/hellofx/HelloFX.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.apache.poi.xwpf.usermodel.XWPFParagraph;
2626
import org.apache.poi.xwpf.usermodel.XWPFRun;
2727
import org.controlsfx.control.HyperlinkLabel;
28+
import org.controlsfx.control.table.TableFilter;
2829
import org.w3c.dom.Document;
2930
import org.xml.sax.SAXException;
3031
import org.xmlunit.builder.DiffBuilder;
@@ -305,7 +306,11 @@ Tab getTabControlsFX() {
305306
if ("Link".equals(str)) {
306307
Project p = new Project();
307308
p.setInformation("test");
308-
System.out.println("Link clicked: " + p.toString());
309+
// System.out.println("Link clicked: " + p.toString());
310+
Alert alert = new Alert(Alert.AlertType.INFORMATION);
311+
alert.setTitle("Information Dialog");
312+
alert.setHeaderText("Link clicked: " + p.toString());
313+
alert.showAndWait();
309314
}
310315
});
311316
// Center
@@ -331,8 +336,8 @@ TableView<Person> getTableView() {
331336
tableView.getItems().add(new Person("John", "Doe"));
332337
tableView.getItems().add(new Person("Jane", "Deer"));
333338

334-
// Issue Caused by: java.lang.IllegalArgumentException: Invalid URL: Invalid URL or resource not found
335-
// TableFilter<Person> tableFilter = TableFilter.forTableView(tableView).apply();
339+
// add table filter
340+
TableFilter<Person> tableFilter = TableFilter.forTableView(tableView).apply();
336341

337342
return tableView;
338343
}

0 commit comments

Comments
 (0)