Java Swing Bevel Border getToolBorder()

Here you can find the source of getToolBorder()

Description

Report a standard tool border entity, which is a raised bevel border

License

Open Source License

Return

the standard tool border

Declaration

public static Border getToolBorder() 

Method Source Code

//package com.java2s;
//  This software is released under the GNU General Public License.           //

import javax.swing.*;
import javax.swing.border.*;

public class Main {
    /**/*  w  w w  .j a v a2 s. c  o m*/
     * Customized border for tool buttons, to use consistently in all UI
     * components
     */
    private static Border toolBorder;

    /**
     * Report a standard tool border entity, which is a raised bevel border
     *
     * @return the standard tool border
     */
    public static Border getToolBorder() {
        if (toolBorder == null) {
            toolBorder = BorderFactory.createRaisedBevelBorder();
        }

        return toolBorder;
    }
}

Related

  1. createBevelBorder(int type)
  2. createCompoundBevelBorder()
  3. createWidgetBorder()
  4. getDefaultBorder()
  5. getNativeLoweredBorder()
  6. setPaddedRaisedBevelBorder(JComponent component, int top, int left, int bottom, int right)