javax.swing.UIManager.getLookAndFeel()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(167)

本文整理了Java中javax.swing.UIManager.getLookAndFeel()方法的一些代码示例,展示了UIManager.getLookAndFeel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.getLookAndFeel()方法的具体详情如下:
包路径:javax.swing.UIManager
类名称:UIManager
方法名:getLookAndFeel

UIManager.getLookAndFeel介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-awt

private static boolean isWindowsLaF() {
  String lfID = UIManager.getLookAndFeel().getID();
  return lfID.endsWith("Windows"); //NOI18N
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

static boolean isAquaLF() {
    return "Aqua".equals( UIManager.getLookAndFeel().getID() ); //NOI18N
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

static boolean isNimbus () {
  return "Nimbus".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

private static boolean isAquaLaF() {
  return "Aqua".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

private static boolean isGTKLaF () {
  return "GTK".equals( UIManager.getLookAndFeel().getID() ); //NOI18N
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

static boolean isAqua () {
  return "Aqua".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: org.netbeans.api/org-openide-awt

static boolean isGTK () {
  return "GTK".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: stackoverflow.com

return UIManager.getLookAndFeel().getID().equals("Windows");
System.out.println(UIManager.getLookAndFeel().getClass());
System.out.println("Windows classic is initially: " + isWindowsClassicLAF());

代码示例来源:origin: org.netbeans.api/org-openide-dialogs

if ((getBorder() == null) || "GTK".equals(UIManager.getLookAndFeel().getID())) {

代码示例来源:origin: org.netbeans.api/org-openide-awt

if ("Aqua".equals(UIManager.getLookAndFeel().getID())) { //NOI18N
  if (popupMenu != null) {
    final JPopupMenu dummy = new JPopupMenu();

代码示例来源:origin: com.jgoodies/jgoodies-common

/**
 * Checks and answers whether an Aqua look&feel is active.
 * This may be Apple's Aqua L&f, or a sub-L&f that
 * uses the same ID, because it doesn't substantially change the look.
 *
 * @return {@code true} if the current look&feel is Aqua-like
 * 
 * @since 1.8
 */
public static boolean isLafAqua() {
  return UIManager.getLookAndFeel().getID().equals("Aqua");
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean matches() {
    return UIManager.getLookAndFeel().getID().equals("Nimbus");
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-all

/**
 * 
 * @return true if the LF is GTK.
 */
private boolean isGTK() {
  return "GTK".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-dlight-visualizers

public static boolean isMotifLookAndFeel() {
    // is current L&F some kind of GTKLookAndFeel?
    return UIManager.getLookAndFeel().getID().equals("Motif"); //NOI18N
  }
}

代码示例来源:origin: org.swinglabs.swingx/swingx-plaf

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean matches() {
    return UIManager.getLookAndFeel().getID().equals("Motif");
  }
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * 
 * @return true if the LF is GTK.
 */
private boolean isGTK() {
  return "GTK".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * 
 * @return true if the LF is GTK.
 */
private boolean isGTK() {
  return "GTK".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-desktop

/**
 * 
 * @return true if the LF is GTK.
 */
private boolean isGTK() {
  return "GTK".equals(UIManager.getLookAndFeel().getID());
}

代码示例来源:origin: com.jgoodies/jgoodiesforms

/**
 * Computes and answers whether an Aqua look&feel is active.
 * This may be Apple's Aqua L&f, or a sub-L&f that
 * uses the same ID, because it doesn't substantially change the look.
 *
 * @return true if the current look&feel is Aqua
 */
private static boolean computeIsLafAqua() {
  return UIManager.getLookAndFeel().getID().equals("Aqua");
}

代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-plaf

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean matches() {
    return UIManager.getLookAndFeel().getID().equals("Motif");
  }
}

相关文章