当前位置: 首页>>代码示例>>Java>>正文


Java LookAndFeel.uninstallBorder方法代码示例

本文整理汇总了Java中javax.swing.LookAndFeel.uninstallBorder方法的典型用法代码示例。如果您正苦于以下问题:Java LookAndFeel.uninstallBorder方法的具体用法?Java LookAndFeel.uninstallBorder怎么用?Java LookAndFeel.uninstallBorder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.swing.LookAndFeel的用法示例。


在下文中一共展示了LookAndFeel.uninstallBorder方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
/**
 * Uninstalls all default properties that have previously been installed by
 * this UI.
 */
protected void uninstallDefaults()
{
  if (textComponent.getCaretColor() instanceof UIResource)
    textComponent.setCaretColor(null);
  if (textComponent.getSelectionColor() instanceof UIResource)
    textComponent.setSelectionColor(null);
  if (textComponent.getDisabledTextColor() instanceof UIResource)
    textComponent.setDisabledTextColor(null);
  if (textComponent.getSelectedTextColor() instanceof UIResource)
    textComponent.setSelectedTextColor(null);
  LookAndFeel.uninstallBorder(textComponent);
  if (textComponent.getMargin() instanceof UIResource)
    textComponent.setMargin(null);
}
 
开发者ID:vilie,项目名称:javify,代码行数:19,代码来源:BasicTextUI.java

示例2: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
/**
 * Uninstalls the defaults and sets any objects created during
 * install to <code>null</code>.
 *
 * @see #installDefaults()
 */
protected void uninstallDefaults()
{
  if (comboBox.getFont() instanceof UIResource)
    comboBox.setFont(null);

  if (comboBox.getForeground() instanceof UIResource)
    comboBox.setForeground(null);

  if (comboBox.getBackground() instanceof UIResource)
    comboBox.setBackground(null);

  LookAndFeel.uninstallBorder(comboBox);
}
 
开发者ID:vilie,项目名称:javify,代码行数:20,代码来源:BasicComboBoxUI.java

示例3: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
protected void uninstallDefaults(JScrollPane p)
{
  LookAndFeel.uninstallBorder(p);
  Border vpBorder = p.getViewportBorder();
  if (vpBorder != null && vpBorder instanceof UIResource)
    p.setViewportBorder(null);
}
 
开发者ID:vilie,项目名称:javify,代码行数:8,代码来源:BasicScrollPaneUI.java

示例4: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
/**
 * This method uninstalls any defaults that this scrollbar acquired from the
 * Basic Look and Feel defaults.
 */
protected void uninstallDefaults()
{
  scrollbar.setForeground(null);
  scrollbar.setBackground(null);
  LookAndFeel.uninstallBorder(scrollbar);
  incrButton = null;
  decrButton = null;
}
 
开发者ID:vilie,项目名称:javify,代码行数:13,代码来源:BasicScrollBarUI.java

示例5: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
/**
 * Uninstalls the UI defaults for the specified panel.
 *
 * @param p  the panel (<code>null</code> not permitted).
 */
protected void uninstallDefaults(JPanel p)
{
  // Tests on the reference implementation showed this method:
  // (1) doesn't actually remove the installed colors and font installed
  //     by installDefaults(), it isn't necessary;
  // (2) throws a NullPointerException in LookAndFeel.uninstallBorder() if
  //     p is null.  Strangely, no border is installed by the
  //     BasicLookAndFeel - perhaps this is needed by another LAF?

  LookAndFeel.uninstallBorder(p);
}
 
开发者ID:vilie,项目名称:javify,代码行数:17,代码来源:BasicPanelUI.java

示例6: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
/**
 * Removes the defaults added by {@link #installDefaults(AbstractButton)}.
 *
 * @param b  the button (<code>null</code> not permitted).
 */
protected void uninstallDefaults(AbstractButton b)
{
  // The other properties aren't uninstallable.
  LookAndFeel.uninstallBorder(b);
}
 
开发者ID:vilie,项目名称:javify,代码行数:11,代码来源:BasicButtonUI.java

示例7: uninstallBorder

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
/**
 * <p>去除窗格边框</p>
 * 
 * <p>remove JRootPane border.</p>
 *
 * @param root
 */
protected void uninstallBorder(JRootPane root)
{
    LookAndFeel.uninstallBorder(root);

    root.setBorder(null);
}
 
开发者ID:freeseawind,项目名称:littleluck,代码行数:14,代码来源:LuckRootPaneUI.java

示例8: uninstallDefaults

import javax.swing.LookAndFeel; //导入方法依赖的package包/类
protected void uninstallDefaults(final PRoPanel pp) {

        LookAndFeel.uninstallBorder(pp);
    }
 
开发者ID:Naoghuman,项目名称:typewriter,代码行数:5,代码来源:PRoPanel.java


注:本文中的javax.swing.LookAndFeel.uninstallBorder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。