Example #1
0
 public static String validateDisplayName(String name, long handle) {
   if ((null == name || AbstractGraphicsDevice.DEFAULT_CONNECTION.equals(name)) && 0 != handle) {
     name = X11Lib.XDisplayString(handle);
   }
   return validateDisplayName(name);
 }
Example #2
0
 /**
  * @return If name is null, it returns the previous queried NULL display name, otherwise the name.
  */
 public static String validateDisplayName(String name) {
   return (null == name || AbstractGraphicsDevice.DEFAULT_CONNECTION.equals(name))
       ? getNullDisplayName()
       : name;
 }