本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例8: uninstallDefaults
import javax.swing.LookAndFeel; //导入方法依赖的package包/类
protected void uninstallDefaults(final PRoPanel pp) {
LookAndFeel.uninstallBorder(pp);
}