Class JVMUtilities


  • public class JVMUtilities
    extends java.lang.Object
    This class provides static functions for jvm specific bullshit (e.g. changed focus system from jvm 1.3.x to 1.4.x It also checks for necessary systems, e.g. XML
    • Constructor Summary

      Constructors 
      Constructor Description
      JVMUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getExtendedState​(java.awt.Frame aObj)
      This function calls Frame.getExtendedState (in java >= 1.4) to keep GUI consistent with java 1.3.x
      static java.awt.Color getTreeSelectionBorderColor()
      this is a helper function to catch a jvm 1.4.2_01 bug
      static boolean requestFocusInWindow​(java.awt.Component aObj)
      Request the focus in the current window.
      static boolean setExtendedState​(java.awt.Frame aObj, int state)
      This function calls Frame.setExtendedState (in java >= 1.4) to keep GUI consistent with java 1.3.x
      static void setFocusableWindowState​(java.awt.Window aObj, boolean aFlag)
      This function calls Component.setFocusableWindowState (in java >= 1.4) to keep GUI consistent with java 1.3.x
      • Methods inherited from class java.lang.Object

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

      • JRE_1_2_PLUS

        public static final boolean JRE_1_2_PLUS
        'true' iff the current runtime version is 1.2 or later
      • JRE_1_3_PLUS

        public static final boolean JRE_1_3_PLUS
        'true' iff the current runtime version is 1.3 or later
      • JRE_1_4_PLUS

        public static final boolean JRE_1_4_PLUS
        'true' iff the current runtime version is 1.4 or later
      • XML_PARSER_FOUND

        public static final java.lang.String XML_PARSER_FOUND
        !null iff the current system has a functional xml parser
    • Constructor Detail

      • JVMUtilities

        public JVMUtilities()
    • Method Detail

      • getTreeSelectionBorderColor

        public static final java.awt.Color getTreeSelectionBorderColor()
        this is a helper function to catch a jvm 1.4.2_01 bug
      • requestFocusInWindow

        public static final boolean requestFocusInWindow​(java.awt.Component aObj)
        Request the focus in the current window.
      • setFocusableWindowState

        public static final void setFocusableWindowState​(java.awt.Window aObj,
                                                         boolean aFlag)
        This function calls Component.setFocusableWindowState (in java >= 1.4) to keep GUI consistent with java 1.3.x
      • getExtendedState

        public static final int getExtendedState​(java.awt.Frame aObj)
        This function calls Frame.getExtendedState (in java >= 1.4) to keep GUI consistent with java 1.3.x
      • setExtendedState

        public static final boolean setExtendedState​(java.awt.Frame aObj,
                                                     int state)
        This function calls Frame.setExtendedState (in java >= 1.4) to keep GUI consistent with java 1.3.x