Here you can find the source of tweakLookAndFeel()
public static void tweakLookAndFeel()
//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; } }