Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i add javafx.util.Pair to project compiled with jdk11.0.2?

Tags:

java-11

javafx

Can not change the JDK, tried downloading javafx.jar and it did not work either. what should I do?

like image 230
annnnnnnnnn Avatar asked Dec 17 '22 18:12

annnnnnnnnn


1 Answers

You can replace javafx.util.Pair (using import javafx.util.Pair) by AbstractMap.SimpleEntry (using import java.util.AbstractMap) if it is the only class from javafx

like image 108
user10617847 Avatar answered Mar 15 '23 07:03

user10617847