Class System


  • public class System
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      System()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getDateAndTime​(java.lang.String format)
      Gets the date and time formatted as a string.
      static java.lang.String getToolkitVersion()
      Gets the current JavaToolkit version.
      static boolean isWindows()
      Checks if the current operating system is *nix-based or Windows-based.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • newLine

        public static final java.lang.String newLine
      • logErrors

        public static boolean logErrors
      • errorOccurred

        public static boolean errorOccurred
      • showErrors

        public static boolean showErrors
    • Constructor Detail

      • System

        public System()
    • Method Detail

      • getDateAndTime

        public static java.lang.String getDateAndTime​(java.lang.String format)
        Gets the date and time formatted as a string.
        Parameters:
        format - The format of the date and time string.
        Returns:
        The formatted date and time string.
      • getToolkitVersion

        public static java.lang.String getToolkitVersion()
        Gets the current JavaToolkit version.
        Returns:
        The current JavaToolkit version.
      • isWindows

        public static boolean isWindows()
        Checks if the current operating system is *nix-based or Windows-based.
        Returns:
        Whether or not the current operating system is *nix-based or Windows-based.