public static String currentPlatformName(){
  String os=System.getProperty("os.name");
  if (os.startsWith("Mac OS")) {
    return "Mac OS X";
  }
 else   if (os.startsWith("Windows")) {
    return "Windows";
  }
 else   if (os.startsWith("Linux")) {
    return "Linux";
  }
  return "Other";
}

public static String currentPlatformName ( ) { String os = System . getProperty ( "os.name" ) ; if ( os . startsWith ( "Mac OS" ) ) { return "Mac OS X" ; } else if ( os . startsWith ( "Windows" ) ) { return "Windows" ; } else if ( os . startsWith ( "Linux" ) ) { return "Linux" ; } return "Other" ; }
returns current platform ' s ui name
