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

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

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

OS.isWindowsXP介绍

暂无

代码示例

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

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  if (OS.isWindowsXP() && OS.isUsingWindowsVisualStyles()) {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-xp.png"));
  } else {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-w2k.png"));
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  if (OS.isWindowsXP() && OS.isUsingWindowsVisualStyles()) {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-xp.png"));
  } else {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-w2k.png"));
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  if (OS.isWindowsXP() && OS.isUsingWindowsVisualStyles()) {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-xp.png"));
  } else {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-w2k.png"));
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  if (OS.isWindowsXP() && OS.isUsingWindowsVisualStyles()) {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-xp.png"));
  } else {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-w2k.png"));
  }
}

代码示例来源:origin: com.haulmont.thirdparty/swingx-core

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  if (OS.isWindowsXP() && OS.isUsingWindowsVisualStyles()) {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-xp.png"));
  } else {
    defaults.add("JXDatePicker.arrowIcon",
        LookAndFeel.makeIcon(DatePickerAddon.class, "windows/resources/combo-w2k.png"));
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
protected void addWindowsDefaults(LookAndFeelAddons addon, DefaultsList defaults) {
  super.addWindowsDefaults(addon, defaults);
  
  if (OS.isWindowsXP()) {
    defaults.add(ColumnHeaderRenderer.UP_ICON_KEY,
        LookAndFeel.makeIcon(ColumnHeaderRendererAddon.class, "windows/resources/sort-xp-up.png"));
    defaults.add(ColumnHeaderRenderer.DOWN_ICON_KEY,
        LookAndFeel.makeIcon(ColumnHeaderRendererAddon.class, "windows/resources/sort-xp-dn.png"));
  } else {
    defaults.add(ColumnHeaderRenderer.UP_ICON_KEY,
        LookAndFeel.makeIcon(ColumnHeaderRendererAddon.class, "windows/resources/sort-w2k-up.png"));
    defaults.add(ColumnHeaderRenderer.DOWN_ICON_KEY,
        LookAndFeel.makeIcon(ColumnHeaderRendererAddon.class, "windows/resources/sort-w2k-dn.png"));
  }
  
  hackVistaHeaderBorder(addon, defaults);
}

相关文章