File tree Expand file tree Collapse file tree
src/main/java/com/example/hellofx Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99
1010dependencies {
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
Original file line number Diff line number Diff line change 2525import org .apache .poi .xwpf .usermodel .XWPFParagraph ;
2626import org .apache .poi .xwpf .usermodel .XWPFRun ;
2727import org .controlsfx .control .HyperlinkLabel ;
28+ import org .controlsfx .control .table .TableFilter ;
2829import org .w3c .dom .Document ;
2930import org .xml .sax .SAXException ;
3031import 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 }
You can’t perform that action at this time.
0 commit comments