Search in sources :

Example 6 with BasicSplitPaneUI

use of javax.swing.plaf.basic.BasicSplitPaneUI in project adempiere by adempiere.

the class VTreePanel method removeSplitPaneBorder.

//  jbInit
private void removeSplitPaneBorder() {
    if (centerSplitPane != null) {
        SplitPaneUI splitPaneUI = centerSplitPane.getUI();
        if (splitPaneUI instanceof BasicSplitPaneUI) {
            BasicSplitPaneUI basicUI = (BasicSplitPaneUI) splitPaneUI;
            basicUI.getDivider().setBorder(BorderFactory.createEmptyBorder());
        }
    }
}
Also used : BasicSplitPaneUI(javax.swing.plaf.basic.BasicSplitPaneUI) SplitPaneUI(javax.swing.plaf.SplitPaneUI) BasicSplitPaneUI(javax.swing.plaf.basic.BasicSplitPaneUI)

Aggregations

BasicSplitPaneUI (javax.swing.plaf.basic.BasicSplitPaneUI)6 SplitPaneUI (javax.swing.plaf.SplitPaneUI)3 CompoundBorder (javax.swing.border.CompoundBorder)2 ParticleController (com.badlogic.gdx.graphics.g3d.particles.ParticleController)1 BorderLayout (java.awt.BorderLayout)1 Graphics (java.awt.Graphics)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1 Insets (java.awt.Insets)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 DefaultComboBoxModel (javax.swing.DefaultComboBoxModel)1 JButton (javax.swing.JButton)1 JComboBox (javax.swing.JComboBox)1 JComponent (javax.swing.JComponent)1 JPanel (javax.swing.JPanel)1 JScrollPane (javax.swing.JScrollPane)1 JSplitPane (javax.swing.JSplitPane)1 Border (javax.swing.border.Border)1 EmptyBorder (javax.swing.border.EmptyBorder)1