I can do
importClass(Packages.ij.io.DirectoryChooser); directoryObject = DirectoryChooser("select directory");
But why can’t I (or how would I do the equivalent of)
importPackage(Packages.ij.io); directoryObject = io.DirectoryChooser("select directory");
If I’m going to use multiple methods in io, seems like it would be more efficient to do it the 2nd way, rather than having to import every class.
Is there a way?