Java examples for Swing:JComponent
remove JComponent Border
//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*/ }