本文整理匯總了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);
}