Java Swing Look and Feel tweakLookAndFeel()

Here you can find the source of tweakLookAndFeel()

Description

tweak Look And Feel

License

Open Source License

Declaration

public static void tweakLookAndFeel() 

Method Source Code


//package com.java2s;
// modify it under the terms of the GNU Lesser General Public License

import java.awt.Color;

import javax.swing.UIManager;

public class Main {
    private static final boolean IS_MAC_OS_X = System.getProperty("os.name").contains("OS X");

    public static void tweakLookAndFeel() {
        if (!isMacOSX())
            return;

        UIManager.put("Table.gridColor", Color.gray);
    }/*w ww  . ja  v  a2s . c o m*/

    public static boolean isMacOSX() {
        return IS_MAC_OS_X;
    }
}

Related

  1. setWindowsLookAndFeel()
  2. setWindowsLookLike(Window window)
  3. supportsDarkLookAndFeel()
  4. trySetNimbusLookAndFeel()
  5. tryToSetSystemLookAndFeel()
  6. useCrossPlatformLookAndFeel(Component object)
  7. usingAppleLAF()