?
Solved

OS detection

Posted on 2004-04-14
6
Medium Priority
?
338 Views
Last Modified: 2010-03-31
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
Comment
Question by:DrunkenTigerDDD
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 10829471
UIManager.getSystemLookAndFeelClassName()  
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 400 total points
ID: 10829475
System.getProperty("os.name");
0
 
LVL 92

Expert Comment

by:objects
ID: 10829477
String os = System.getProperty("os.name");
0
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
LVL 92

Expert Comment

by:objects
ID: 10829479
no need to in fact know the OS to use the native L&F.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10829641
8-)
0
 

Author Comment

by:DrunkenTigerDDD
ID: 10829699
Thanks
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question