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
DrunkenTigerDDDAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CEHJConnect With a Mentor Commented:
System.getProperty("os.name");
0
 
objectsCommented:
UIManager.getSystemLookAndFeelClassName()  
0
 
objectsCommented:
String os = System.getProperty("os.name");
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.