當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。