Here you can find the source of getButtonBorderColor(Color color)
static Color getButtonBorderColor(Color color)
//package com.java2s; //License from project: Open Source License import java.awt.Color; import javax.swing.plaf.ColorUIResource; public class Main { static final Color DARK_GREEN = new Color(0, 128, 0); static final Color DARK_MAGENTA = new Color(128, 0, 128); static Color getButtonBorderColor(Color color) { /* 141 */if ((DARK_GREEN.equals(color)) || (DARK_MAGENTA.equals(color))) { /* 142 */return new ColorUIResource(Color.WHITE); /* */} /* 144 */return color; /* */} }