Java Swing Border getDefaultBorderColour()

Here you can find the source of getDefaultBorderColour()

Description

Convenience method for consistent border colour.

License

Open Source License

Return

the system default border colour

Declaration

public static Color getDefaultBorderColour() 

Method Source Code


//package com.java2s;
/*//from w w w.  j av a2  s . c  o m
 * UIUtils.java  2/6/13 1:04 PM
 *
 * Copyright (C) 2012-2013 Nick Ma
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

import java.awt.Color;

import javax.swing.UIManager;

public class Main {
    /**
     * Convenience method for consistent border colour.
     *
     * @return the system default border colour
     */
    public static Color getDefaultBorderColour() {
        return UIManager.getColor("controlShadow");
    }
}

Related

  1. drawDisabledBorder(Graphics g, int x, int y, int w, int h)
  2. extendByBorder(JLabel label, Dimension dm)
  3. findComponentWithBorder(JComponent panel, Class aClass)
  4. generatePanelWithoutBorder()
  5. getDefaultBorder()
  6. getTextFieldBorder()
  7. getToolTipBorder()
  8. getWebBorderShape(final JComponent component, final int shadeWidth, final int round)
  9. initLineBorderPanel(Color color, Color lineColor)