javax.swing.LookAndFeel#uninstallBorder ( )源码实例Demo

下面列出了javax.swing.LookAndFeel#uninstallBorder ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: FlatLaf   文件: FlatRootPaneUI.java
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();
}
 
源代码2 项目: FlatLaf   文件: FlatRootPaneUI.java
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();
	}
}
 
源代码3 项目: beautyeye   文件: BERootPaneUI.java
/**
 * 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]));
		}
	}
}
 
源代码4 项目: FlatLaf   文件: FlatTreeUI.java
@Override
protected void uninstallDefaults() {
	super.uninstallDefaults();

	LookAndFeel.uninstallBorder( tree );

	selectionBackground = null;
	selectionForeground = null;
	selectionInactiveBackground = null;
	selectionInactiveForeground = null;
	selectionBorderColor = null;
}
 
源代码5 项目: seaglass   文件: SeaGlassRootPaneUI.java
/**
 * 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)));
    }
}
 
源代码6 项目: lizzie   文件: BasicLizziePaneUI.java
protected void uninstallDefaults() {
  LookAndFeel.uninstallBorder(lizziePane);
}
 
源代码7 项目: pumpernickel   文件: AbstractPanelUI.java
protected void uninstallBorder(JPanel p) {
	LookAndFeel.uninstallBorder(p);
}
 
源代码8 项目: mzmine2   文件: MultiLineToolTipUI.java
public void uninstallUI(JComponent c) {
  LookAndFeel.uninstallBorder(c);
}
 
源代码9 项目: PolyGlot   文件: PToolTipUI.java
protected void uninstallDefaults(JComponent c){
    LookAndFeel.uninstallBorder(c);
}
 
源代码10 项目: littleluck   文件: LuckRootPaneUI.java
/**
 * <p>去除窗格边框</p>
 * 
 * <p>remove JRootPane border.</p>
 *
 * @param root
 */
protected void uninstallBorder(JRootPane root)
{
    LookAndFeel.uninstallBorder(root);

    root.setBorder(null);
}
 
源代码11 项目: beautyeye   文件: BERootPaneUI.java
/**
 * Removes any border that may have been installed.
 *
 * @param root the root
 */
private void uninstallBorder(JRootPane root) 
{
	LookAndFeel.uninstallBorder(root);
}
 
源代码12 项目: seaglass   文件: SeaGlassRootPaneUI.java
/**
 * Removes any border that may have been installed.
 *
 * @param root the root pane.
 */
private void uninstallBorder(JRootPane root) {
    LookAndFeel.uninstallBorder(root);
}