• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

OS detection

Hey is there a way to detect if my program is running on a mac or windows machine, because i want to keep the look and feel of each, but need to make small changes.

Thanks
0
DrunkenTigerDDD
Asked:
DrunkenTigerDDD
  • 3
  • 2
1 Solution
 
objectsCommented:
UIManager.getSystemLookAndFeelClassName()  
0
 
CEHJCommented:
System.getProperty("os.name");
0
 
objectsCommented:
String os = System.getProperty("os.name");
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
objectsCommented:
no need to in fact know the OS to use the native L&F.
0
 
CEHJCommented:
8-)
0
 
DrunkenTigerDDDAuthor Commented:
Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now