Reputation: 448
I try to migrate from JavaFX 8 to 9+.
How can I find the modules named for the existing classes?
Here the example for my problem:
It was hard to find out that javax.smartcardio
must use the module name java.smartcardio
.
Is the a lookup table to find the module names?
Intelij Idea does not find it on fly.
module xyz {
// import javax.smartcardio.*;
requires transitive java.smartcardio;
// import javax.swing.*;
requires transitive java.desktop;
}
Is there an easy way to solve this?
Upvotes: 5
Views: 1298
Reputation: 33905
You can use the search function of the online javadoc: https://docs.oracle.com/en/java/javase/11/docs/api/index.html
To look up the package by name:
Then on the javadoc page of the package the module it's in is in the top left:
(Note that the module name also shows up in the search auto-complete dialogue)
Upvotes: 4