java.lang.Object
io.github.javaezlib.javaez.extensions.System

public class System extends Object
The system extension, allowing the user to check system info
Since:
1.2
Author:
Red050911
  • Constructor Details

    • System

      public System()
  • Method Details

    • whatsMyOS

      public static String whatsMyOS()
      Gets the OS name of the one who runs the program. This info is delivered by the system and may look a bit technical. (Except for Windows)
      Returns:
      The system-provided OS name
      Since:
      1.2
    • whatsMySimplifiedOS

      public static String whatsMySimplifiedOS()
      Gets the OS name of the one who runs the program. However, unlike whatsMyOS() this info is simplified. Ex. Windows Version 10
      Returns:
      The simplified OS name (If OS could not be simplified, it will equal whatsMyOS())
      Since:
      1.2
    • whoIsUsingThePC

      public static String whoIsUsingThePC()
      Returns the username of the one who is using the PC
      Returns:
      who is using the PC
      Since:
      1.2
    • lockMyPC

      public static void lockMyPC()
      Places the user on the sign-in screen without closing any apps. (You have to be on Windows for this to work)
      Since:
      1.2
    • openAPath

      public static void openAPath(String path)
      Opens a path in Explorer/Finder/whatever file viewer
      Parameters:
      path - the path to open
      Since:
      1.2
    • printAFile

      public static void printAFile(String path)
      Prints a file using whatever print system your OS uses
      Parameters:
      path - the path of the file to print
      Since:
      1.2