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

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

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

OS.isWindowsVista介绍

暂无

代码示例

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

/**
 * Hack around the oversized vista header border installed by core.
 * Registers a (5,5,5,5) empty border for vista themes. Does nothing if the
 * OS is not Vista or the addon is classic windows or the JVM isn't 1.5. 
 * 
 * PENDING: can we have XP themes under vista? If so, this needs to be changed - 
 * most probably the xp border is okay.
 * 
 * @param addon
 * @param defaults
 */
private void hackVistaHeaderBorder(LookAndFeelAddons addon, DefaultsList defaults) {
  // do nothing if not vista or for classic design under vista
  if (!OS.isWindowsVista() || (addon instanceof WindowsClassicLookAndFeelAddons)
      || !JVM.current().isOneDotFive())
    return;
  defaults.add(ColumnHeaderRenderer.VISTA_BORDER_HACK,
      new BorderUIResource.EmptyBorderUIResource(5, 5, 5, 5));
}

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

backgroundGradientEnd = new Color(177, 179, 200);
} else {        
 if (OS.isWindowsVista()) {
  final Toolkit toolkit = Toolkit.getDefaultToolkit();
  background = new ColorUIResource((Color)toolkit.getDesktopProperty("win.3d.backgroundColor"));

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

backgroundGradientEnd = new Color(177, 179, 200);
} else {        
 if (OS.isWindowsVista()) {
  final Toolkit toolkit = Toolkit.getDefaultToolkit();
  background = new ColorUIResource((Color)toolkit.getDesktopProperty("win.3d.backgroundColor"));

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

backgroundGradientEnd = new Color(177, 179, 200);
} else {        
 if (OS.isWindowsVista()) {
  final Toolkit toolkit = Toolkit.getDefaultToolkit();
  background = new ColorUIResource((Color)toolkit.getDesktopProperty("win.3d.backgroundColor"));

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

backgroundGradientEnd = new Color(177, 179, 200);
} else {        
 if (OS.isWindowsVista()) {
  final Toolkit toolkit = Toolkit.getDefaultToolkit();
  background = new ColorUIResource((Color)toolkit.getDesktopProperty("win.3d.backgroundColor"));

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

backgroundGradientEnd = new Color(177, 179, 200);
} else {        
 if (OS.isWindowsVista()) {
  final Toolkit toolkit = Toolkit.getDefaultToolkit();
  background = new ColorUIResource((Color)toolkit.getDesktopProperty("win.3d.backgroundColor"));

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

defaults.add("TaskPane.specialTitleOver", new ColorUIResource(126, 124, 124));
 defaults.add("TaskPane.borderColor", new ColorUIResource(Color.WHITE));
} else if (OS.isWindowsVista()) {

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

defaults.add("TaskPane.specialTitleOver", new ColorUIResource(126, 124, 124));
 defaults.add("TaskPane.borderColor", new ColorUIResource(Color.WHITE));
} else if (OS.isWindowsVista()) {

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

defaults.add("TaskPane.specialTitleOver", new ColorUIResource(126, 124, 124));
 defaults.add("TaskPane.borderColor", new ColorUIResource(Color.WHITE));
} else if (OS.isWindowsVista()) {

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

defaults.add("TaskPane.specialTitleOver", new ColorUIResource(126, 124, 124));
 defaults.add("TaskPane.borderColor", new ColorUIResource(Color.WHITE));
} else if (OS.isWindowsVista()) {

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

defaults.add("TaskPane.specialTitleOver", new ColorUIResource(126, 124, 124));
 defaults.add("TaskPane.borderColor", new ColorUIResource(Color.WHITE));
} else if (OS.isWindowsVista()) {

相关文章