< prev index next >

test/jdk/javax/swing/LookAndFeel/SystemLookAndFeel/SystemLookAndFeelTest.java

Print this page
rev 59106 : imported patch client

*** 49,59 **** String expLAF = null; if (os.contains("windows")) { expLAF = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; } else if (os.contains("macos")) { expLAF = "com.apple.laf.AquaLookAndFeel"; ! } else if (os.contains("linux") || os.contains("sunos")) { /* * The implementation keys off the following desktop setting to * decide if GTK is an appropriate system L&F. * In its absence, there probably isn't support for the GTK L&F * anyway. It does not tell us if the GTK libraries are available --- 49,59 ---- String expLAF = null; if (os.contains("windows")) { expLAF = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; } else if (os.contains("macos")) { expLAF = "com.apple.laf.AquaLookAndFeel"; ! } else if (os.contains("linux")) { /* * The implementation keys off the following desktop setting to * decide if GTK is an appropriate system L&F. * In its absence, there probably isn't support for the GTK L&F * anyway. It does not tell us if the GTK libraries are available
*** 65,76 **** System.out.println("Gnome desktop session ID is " + gnome); if (gnome != null) { expLAF = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel"; } else if (os.contains("linux")) { expLAF = "javax.swing.plaf.metal.MetalLookAndFeel"; - } else if (os.contains("sunos")) { - expLAF = "com.sun.java.swing.plaf.motif.MotifLookAndFeel"; } } System.out.println("Expected System LAF is " + expLAF); if (expLAF == null) { System.out.println("No match for expected LAF, unknown OS ?"); --- 65,74 ----
< prev index next >