Should this work?

Michael Hall mik3hall at gmail.com
Sat Aug 1 21:31:42 UTC 2015


> UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

This alone didn’t seem to get jdeps showing the aqua laf.
Is there some other way I should test setting the laf?
Otherwise I think just testing with this…

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...");
	}
}

Then jar the class and see what jdeps shows, would  work as a valid test case. 

Michael Hall






More information about the jigsaw-dev mailing list