@@ -0,0 +1,2493 @@
+//%0A// LAFUtil.java%0A//%0A%0A/*%0AVisBio application for visualization of multidimensional%0Abiological image data. Copyright (C) 2002-2004 Curtis Rueden.%0A%0AThis program is free software; you can redistribute it and/or modify%0Ait under the terms of the GNU General Public License as published by%0Athe Free Software Foundation; either version 2 of the License, or%0A(at your option) any later version.%0A%0AThis program is distributed in the hope that it will be useful,%0Abut WITHOUT ANY WARRANTY; without even the implied warranty of%0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0AGNU General Public License for more details.%0A%0AYou should have received a copy of the GNU General Public License%0Aalong with this program; if not, write to the Free Software%0AFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA%0A*/%0A%0Apackage loci.visbio.util;%0A%0Aimport com.jgoodies.plaf.LookUtils;%0Aimport com.jgoodies.plaf.Options;%0Aimport com.jgoodies.plaf.FontSizeHints;%0A%0Aimport java.awt.Dimension;%0A%0Aimport javax.swing.UIManager;%0A%0A/** LAFUtil contains useful functions relating to Look and Feel. */%0Apublic abstract class LAFUtil %7B%0A%0A  /** Initializes the look and feel to a reasonable default. */%0A  public static void setLookAndFeel() %7B%0A    UIManager.put(Options.USE_SYSTEM_FONTS_APP_KEY, Boolean.TRUE);%0A    Options.setGlobalFontSizeHints(FontSizeHints.MIXED);%0A    Options.setDefaultIconSize(new Dimension(18, 18));%0A%0A    UIManager.installLookAndFeel(%22JGoodies ExtWindows%22,%0A      %22com.jgoodies.plaf.windows.ExtWindowsLookAndFeel%22);%0A    UIManager.installLookAndFeel(%22JGoodies Plastic%22,%0A      %22com.jgoodies.plaf.plastic.PlasticLookAndFeel%22);%0A    UIManager.installLookAndFeel(%22JGoodies Plastic3D%22,%0A      %22com.jgoodies.plaf.plastic.Plastic3DLookAndFeel%22);%0A    UIManager.installLookAndFeel(%22JGoodies PlasticXP%22,%0A      %22com.jgoodies.plaf.plastic.PlasticXPLookAndFeel%22);%0A%0A    /*%0A    UIManager.LookAndFeelInfo%5B%5D lafs = UIManager.getInstalledLookAndFeels();%0A    for (int i=0; i%3Clafs.length; i++) %7B%0A      System.out.println(lafs%5Bi%5D.getName() +%0A        %22 (%22 + lafs%5Bi%5D.getClassName() + %22)%22);%0A    %7D%0A    */%0A%0A    String lafName = LookUtils.IS_OS_WINDOWS_XP%0A      ? Options.getCrossPlatformLookAndFeelClassName()%0A      : Options.getSystemLookAndFeelClassName();%0A%0A    try %7B UIManager.setLookAndFeel(lafName); %7D%0A    catch (Exception exc) %7B exc.printStackTrace(); %7D%0A  %7D%0A%0A  /** Gets the name of the current look and feel. */%0A  public static String getLookAndFeel() %7B%0A    return UIManager.getLookAndFeel().getName();%0A  %7D%0A%0A%7D%0A

Add L&F utility class, and VisBio launch script for Linux.