> On Aug 2, 2015, at 6:46 AM, Alan Bateman <[email protected]> wrote:
> 
>> 
> The jdeps in JDK 9 builds is up to date and the above output here looks right.
> 
> Since the LAF is specified as a String then it means that there isn't a 
> static dependency on the com.apple.laf.* or ch.randelshofer.quaqua.* classes.
> 
> Is there a quaqua.jar or other JAR with the Quaqua LAF that you could run 
> jdeps on? That might be more interesting to see if it depends on Swing 
> internal classes or com.apple.eawt APIs.

You may of missed here that I had switched to testing with the trivial test 
class I posted earlier. Shown below.

That simply does…
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());

No QuaQua involved. 

I could try running with the quaqua jar in class path and this again…
                try {
                        if (System.getProperty("os.name").equals("Mac OS X")) 
                                
UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
                        else
                                
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                } catch (Exception e) {
                }

But I’m not sure how that would improve the chances of seeing the Aqua 
java.desktop dependencies?
----------------------------------------------------------------------------------------------------------------------
Current Test Class: (Running it java -verbose:class does show it loading 
com.apple.laf)

import javax.swing.JFrame;

public class JdepLAF {

        public static void main(String[] args) {
            try {
                
javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
                        JFrame tester = new JFrame("Test jdeps on Aqua LAF");
                        tester.pack();
                        tester.setVisible(true);
                }
                catch (Exception ex) { ex.printStackTrace(); }
                System.out.println("exiting...");
        }
}

Michael Hall




Reply via email to