Java Code Examples for javax.swing.LookAndFeel#uninstallBorder()

The following examples show how to use javax.swing.LookAndFeel#uninstallBorder() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlatRootPaneUI.java    From FlatLaf with Apache License 2.0 6 votes vote down vote up
protected void installClientDecorations() {
	boolean isJBRSupported = canUseJBRCustomDecorations && JBRCustomDecorations.isSupported();

	// install border
	if( rootPane.getWindowDecorationStyle() != JRootPane.NONE && !isJBRSupported )
		LookAndFeel.installBorder( rootPane, "RootPane.border" );
	else
		LookAndFeel.uninstallBorder( rootPane );

	// install title pane
	setTitlePane( createTitlePane() );

	// install layout
	oldLayout = rootPane.getLayout();
	rootPane.setLayout( createRootLayout() );

	// install window resizer
	if( !isJBRSupported )
		windowResizer = createWindowResizer();
}
 
Example 2
Source File: FlatRootPaneUI.java    From FlatLaf with Apache License 2.0 6 votes vote down vote up
protected void uninstallClientDecorations() {
	LookAndFeel.uninstallBorder( rootPane );
	setTitlePane( null );

	if( windowResizer != null ) {
		windowResizer.uninstall();
		windowResizer = null;
	}

	if( oldLayout != null ) {
		rootPane.setLayout( oldLayout );
		oldLayout = null;
	}

	if( rootPane.getWindowDecorationStyle() == JRootPane.NONE ) {
		rootPane.revalidate();
		rootPane.repaint();
	}
}
 
Example 3
Source File: BERootPaneUI.java    From beautyeye with Apache License 2.0 6 votes vote down vote up
/**
 * Installs the appropriate <code>Border</code> onto the
 * <code>JRootPane</code>.
 *
 * @param root the root
 */
void installBorder(JRootPane root) 
{
	int style = root.getWindowDecorationStyle();

	if (style == JRootPane.NONE) 
	{
		LookAndFeel.uninstallBorder(root);
	}
	else 
	{
		Border b = root.getBorder();
		if (b == null || b instanceof UIResource) 
		{
			root.setBorder(null);
			root.setBorder(UIManager.getBorder(borderKeys[style]));
		}
	}
}
 
Example 4
Source File: FlatTreeUI.java    From FlatLaf with Apache License 2.0 5 votes vote down vote up
@Override
protected void uninstallDefaults() {
	super.uninstallDefaults();

	LookAndFeel.uninstallBorder( tree );

	selectionBackground = null;
	selectionForeground = null;
	selectionInactiveBackground = null;
	selectionInactiveForeground = null;
	selectionBorderColor = null;
}
 
Example 5
Source File: SeaGlassRootPaneUI.java    From seaglass with Apache License 2.0 5 votes vote down vote up
/**
 * Installs the appropriate <code>Border</code> onto the <code>
 * JRootPane</code>.
 *
 * @param root the root pane.
 */
public void installBorder(JRootPane root) {
    int style = root.getWindowDecorationStyle();

    if (style == JRootPane.NONE) {
        LookAndFeel.uninstallBorder(root);
    } else {
        root.setBorder(new SeaGlassBorder(this, new Insets(0, 1, 1, 1)));
    }
}
 
Example 6
Source File: BasicLizziePaneUI.java    From lizzie with GNU General Public License v3.0 4 votes vote down vote up
protected void uninstallDefaults() {
  LookAndFeel.uninstallBorder(lizziePane);
}
 
Example 7
Source File: AbstractPanelUI.java    From pumpernickel with MIT License 4 votes vote down vote up
protected void uninstallBorder(JPanel p) {
	LookAndFeel.uninstallBorder(p);
}
 
Example 8
Source File: MultiLineToolTipUI.java    From mzmine2 with GNU General Public License v2.0 4 votes vote down vote up
public void uninstallUI(JComponent c) {
  LookAndFeel.uninstallBorder(c);
}
 
Example 9
Source File: PToolTipUI.java    From PolyGlot with MIT License 4 votes vote down vote up
protected void uninstallDefaults(JComponent c){
    LookAndFeel.uninstallBorder(c);
}
 
Example 10
Source File: LuckRootPaneUI.java    From littleluck with Apache License 2.0 3 votes vote down vote up
/**
 * <p>去除窗格边框</p>
 * 
 * <p>remove JRootPane border.</p>
 *
 * @param root
 */
protected void uninstallBorder(JRootPane root)
{
    LookAndFeel.uninstallBorder(root);

    root.setBorder(null);
}
 
Example 11
Source File: BERootPaneUI.java    From beautyeye with Apache License 2.0 2 votes vote down vote up
/**
 * Removes any border that may have been installed.
 *
 * @param root the root
 */
private void uninstallBorder(JRootPane root) 
{
	LookAndFeel.uninstallBorder(root);
}
 
Example 12
Source File: SeaGlassRootPaneUI.java    From seaglass with Apache License 2.0 2 votes vote down vote up
/**
 * Removes any border that may have been installed.
 *
 * @param root the root pane.
 */
private void uninstallBorder(JRootPane root) {
    LookAndFeel.uninstallBorder(root);
}