Java Swing LineBorder lineBorder(JComponent comp)

Here you can find the source of lineBorder(JComponent comp)

Description

line Border

License

Apache License

Declaration

public static void lineBorder(JComponent comp) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.*;

import javax.swing.*;

public class Main {
    public static void lineBorder(JComponent comp) {
        comp.setBorder(BorderFactory.createLineBorder(Color.BLUE));
    }// ww w  .j a  va2s . c  o  m
}

Related

  1. getLineBorder()
  2. getMandatoryBorder()
  3. getToolTipBorder()
  4. intToBorder(int borderConstant)
  5. isAtScrollPaneRightBorder(Component c, int x)
  6. recursiveAddBorderToPanel(JComponent c)
  7. setBorder(JComponent comp)
  8. setBorder(JComponent comp, boolean setBorder)
  9. setBorder(JComponent component, int width)