Java Swing Empty Border removeBorder(JComponent component)

Here you can find the source of removeBorder(JComponent component)

Description

remove Border

License

Apache License

Declaration

public static void removeBorder(JComponent component) 

Method Source Code

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

import javax.swing.BorderFactory;
import javax.swing.JComponent;

public class Main {
    public static void removeBorder(JComponent component) {
        component.setBorder(BorderFactory.createEmptyBorder());
    }/*from w  ww .  j a v a2  s . c o  m*/
}

Related

  1. getEmptyBorder()
  2. getEmptyBorder(int width)
  3. getRaisedBorder(int innerPadding)
  4. makeEmptyBorderResource(int top, int left, int bottom, int right)
  5. padBorder(JComponent component, int top, int left, int bottom, int right)
  6. scrollView(Component component, Border border)
  7. setEmptyBorder(int top, int left, int bottom, int right, JComponent... components)
  8. setStandardBorder(JComponent aComponent)
  9. spacingBorder()