Java Swing Border installBorder(JComponent c, Border defaultBorder)

Here you can find the source of installBorder(JComponent c, Border defaultBorder)

Description

install Border

License

Open Source License

Declaration

public static void installBorder(JComponent c, Border defaultBorder) 

Method Source Code

//package com.java2s;
import javax.swing.*;
import javax.swing.border.Border;

import javax.swing.plaf.UIResource;

public class Main {
    public static void installBorder(JComponent c, Border defaultBorder) {
        Border border = c.getBorder();
        if (border == null || border instanceof UIResource) {
            c.setBorder(defaultBorder);/*from   w  w w . ja  v  a2  s . c o  m*/
        }
    }
}

Related

  1. getDefaultBorderColour()
  2. getTextFieldBorder()
  3. getToolTipBorder()
  4. getWebBorderShape(final JComponent component, final int shadeWidth, final int round)
  5. initLineBorderPanel(Color color, Color lineColor)
  6. isStandardBorder(Border b)
  7. makeTitledBorder(JComponent panel, String title, Color color)
  8. paintBorderDebugInfo(final Graphics g, final JComponent c)
  9. removePopupBorder(final Container c)