Java JButton Settings getButtonBorderColor(Color color)

Here you can find the source of getButtonBorderColor(Color color)

Description

get Button Border Color

License

Open Source License

Declaration

static Color getButtonBorderColor(Color color) 

Method Source Code

//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;
        /*     */}
}

Related

  1. getbtnButton(String iconpath, String rolloverIconpath, String pressIconpath)
  2. getButton(Container c, String text)
  3. getButton(Container container, String text)
  4. getButton(String displayText, ActionListener actionListener)
  5. getButtonAsLink(String text)
  6. getButtonColor()
  7. getButtonPane()
  8. getButtonSelectColor()
  9. getButtonSelectedInt(ButtonGroup buttonGroup)