org.jdesktop.swingx.util.OS.isWindows()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(200)

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

OS.isWindows介绍

暂无

代码示例

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

/**
 * {@inheritDoc}
 */
@Override
protected boolean isSystemAddon() {
  return OS.isWindows() && OS.isUsingWindowsVisualStyles();
}

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

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean isSystemAddon() {
    return OS.isWindows() && !OS.isUsingWindowsVisualStyles();
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
protected boolean isSystemAddon() {
  return OS.isWindows() && OS.isUsingWindowsVisualStyles();
}

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

/**
 * {@inheritDoc}
 */
@Override
protected boolean isSystemAddon() {
  return OS.isWindows() && OS.isUsingWindowsVisualStyles();
}

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

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean isSystemAddon() {
    return OS.isWindows() && !OS.isUsingWindowsVisualStyles();
  }
}

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

/**
   * {@inheritDoc}
   */
  @Override
  protected boolean isSystemAddon() {
    return OS.isWindows() && !OS.isUsingWindowsVisualStyles();
  }
}

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

/**
 * @return true if the VM is running Windows and the Java
 *         application is rendered using XP Visual Styles.
 */
public static boolean isUsingWindowsVisualStyles() {
 if (!isWindows()) {
  return false;
 }
 boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
   .getDesktopProperty("win.xpstyle.themeActive"));
 if (!xpthemeActive) {
  return false;
 } else {
  try {
   return System.getProperty("swing.noxp") == null;
  } catch (RuntimeException e) {
   return true;
  }
 }
}

代码示例来源:origin: tmyroadctfig/swingx

/**
 * @return true if the VM is running Windows and the Java
 *         application is rendered using XP Visual Styles.
 */
public static boolean isUsingWindowsVisualStyles() {
 if (!isWindows()) {
  return false;
 }
 boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
   .getDesktopProperty("win.xpstyle.themeActive"));
 if (!xpthemeActive) {
  return false;
 } else {
  try {
   return System.getProperty("swing.noxp") == null;
  } catch (RuntimeException e) {
   return true;
  }
 }
}

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

/**
 * @return true if the VM is running Windows and the Java
 *         application is rendered using XP Visual Styles.
 */
public static boolean isUsingWindowsVisualStyles() {
 if (!isWindows()) {
  return false;
 }
 boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
   .getDesktopProperty("win.xpstyle.themeActive"));
 if (!xpthemeActive) {
  return false;
 } else {
  try {
   return System.getProperty("swing.noxp") == null;
  } catch (RuntimeException e) {
   return true;
  }
 }
}

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

/**
 * @return true if the VM is running Windows and the Java
 *         application is rendered using XP Visual Styles.
 */
public static boolean isUsingWindowsVisualStyles() {
 if (!isWindows()) {
  return false;
 }
 boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
   .getDesktopProperty("win.xpstyle.themeActive"));
 if (!xpthemeActive) {
  return false;
 } else {
  try {
   return System.getProperty("swing.noxp") == null;
  } catch (RuntimeException e) {
   return true;
  }
 }
}

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

/**
 * Gets the addon best suited for the operating system where the
 * virtual machine is running.
 *
 * @return the addon matching the native operating system platform.
 */
public static String getSystemAddonClassName() {
 String addon = WindowsClassicLookAndFeelAddons.class.getName();
 if (OS.isMacOSX()) {
  addon = MacOSXLookAndFeelAddons.class.getName();
 } else if (OS.isWindows()) {
  // see whether of not visual styles are used
  if (OS.isUsingWindowsVisualStyles()) {
   addon = WindowsLookAndFeelAddons.class.getName();
  } else {
   addon = WindowsClassicLookAndFeelAddons.class.getName();
  }
 } else if (OS.isLinux()) {
  addon = LinuxLookAndFeelAddons.class.getName();
 }
 return addon;
}

相关文章