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

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

本文整理了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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected boolean isSystemAddon() {
  6. return OS.isWindows() && OS.isUsingWindowsVisualStyles();
  7. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected boolean isSystemAddon() {
  6. return OS.isWindows() && !OS.isUsingWindowsVisualStyles();
  7. }
  8. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected boolean isSystemAddon() {
  6. return OS.isWindows() && OS.isUsingWindowsVisualStyles();
  7. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected boolean isSystemAddon() {
  6. return OS.isWindows() && OS.isUsingWindowsVisualStyles();
  7. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected boolean isSystemAddon() {
  6. return OS.isWindows() && !OS.isUsingWindowsVisualStyles();
  7. }
  8. }

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

  1. /**
  2. * {@inheritDoc}
  3. */
  4. @Override
  5. protected boolean isSystemAddon() {
  6. return OS.isWindows() && !OS.isUsingWindowsVisualStyles();
  7. }
  8. }

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

  1. /**
  2. * @return true if the VM is running Windows and the Java
  3. * application is rendered using XP Visual Styles.
  4. */
  5. public static boolean isUsingWindowsVisualStyles() {
  6. if (!isWindows()) {
  7. return false;
  8. }
  9. boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
  10. .getDesktopProperty("win.xpstyle.themeActive"));
  11. if (!xpthemeActive) {
  12. return false;
  13. } else {
  14. try {
  15. return System.getProperty("swing.noxp") == null;
  16. } catch (RuntimeException e) {
  17. return true;
  18. }
  19. }
  20. }

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

  1. /**
  2. * @return true if the VM is running Windows and the Java
  3. * application is rendered using XP Visual Styles.
  4. */
  5. public static boolean isUsingWindowsVisualStyles() {
  6. if (!isWindows()) {
  7. return false;
  8. }
  9. boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
  10. .getDesktopProperty("win.xpstyle.themeActive"));
  11. if (!xpthemeActive) {
  12. return false;
  13. } else {
  14. try {
  15. return System.getProperty("swing.noxp") == null;
  16. } catch (RuntimeException e) {
  17. return true;
  18. }
  19. }
  20. }

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

  1. /**
  2. * @return true if the VM is running Windows and the Java
  3. * application is rendered using XP Visual Styles.
  4. */
  5. public static boolean isUsingWindowsVisualStyles() {
  6. if (!isWindows()) {
  7. return false;
  8. }
  9. boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
  10. .getDesktopProperty("win.xpstyle.themeActive"));
  11. if (!xpthemeActive) {
  12. return false;
  13. } else {
  14. try {
  15. return System.getProperty("swing.noxp") == null;
  16. } catch (RuntimeException e) {
  17. return true;
  18. }
  19. }
  20. }

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

  1. /**
  2. * @return true if the VM is running Windows and the Java
  3. * application is rendered using XP Visual Styles.
  4. */
  5. public static boolean isUsingWindowsVisualStyles() {
  6. if (!isWindows()) {
  7. return false;
  8. }
  9. boolean xpthemeActive = Boolean.TRUE.equals(Toolkit.getDefaultToolkit()
  10. .getDesktopProperty("win.xpstyle.themeActive"));
  11. if (!xpthemeActive) {
  12. return false;
  13. } else {
  14. try {
  15. return System.getProperty("swing.noxp") == null;
  16. } catch (RuntimeException e) {
  17. return true;
  18. }
  19. }
  20. }

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

  1. /**
  2. * Gets the addon best suited for the operating system where the
  3. * virtual machine is running.
  4. *
  5. * @return the addon matching the native operating system platform.
  6. */
  7. public static String getSystemAddonClassName() {
  8. String addon = WindowsClassicLookAndFeelAddons.class.getName();
  9. if (OS.isMacOSX()) {
  10. addon = MacOSXLookAndFeelAddons.class.getName();
  11. } else if (OS.isWindows()) {
  12. // see whether of not visual styles are used
  13. if (OS.isUsingWindowsVisualStyles()) {
  14. addon = WindowsLookAndFeelAddons.class.getName();
  15. } else {
  16. addon = WindowsClassicLookAndFeelAddons.class.getName();
  17. }
  18. } else if (OS.isLinux()) {
  19. addon = LinuxLookAndFeelAddons.class.getName();
  20. }
  21. return addon;
  22. }

相关文章