Here you can find the source of createStrippedSplitPane(int orient, JComponent comp1, JComponent comp2)
public static JSplitPane createStrippedSplitPane(int orient, JComponent comp1, JComponent comp2)
//package com.java2s; //License from project: Creative Commons License import javax.swing.BorderFactory; import javax.swing.JComponent; import javax.swing.JSplitPane; import javax.swing.plaf.SplitPaneUI; import javax.swing.plaf.basic.BasicSplitPaneUI; public class Main { public static JSplitPane createStrippedSplitPane(int orient, JComponent comp1, JComponent comp2) { JSplitPane split = new JSplitPane(orient, comp1, comp2); split.setBorder(BorderFactory.createEmptyBorder()); SplitPaneUI splitPaneUI = split.getUI(); if (splitPaneUI instanceof BasicSplitPaneUI) { BasicSplitPaneUI basicUI = (BasicSplitPaneUI) splitPaneUI; basicUI.getDivider().setBorder( BorderFactory.createEmptyBorder()); }/*from w w w .j a v a 2 s . c o m*/ return split; } }