remove JComponent Border - Java Swing

Java examples for Swing:JComponent

Description

remove JComponent Border

Demo Code


//package com.java2s;

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

public class Main {
    public static void removeBorder(JComponent component) {
        component.setBorder(BorderFactory.createEmptyBorder());
    }/*from w  w  w.  j  av a 2 s . c om*/
}

Related Tutorials