Class SwingHelper

java.lang.Object
com.macrofocus.helper.SwingHelper

public class SwingHelper extends Object
Helper class for dealing with Swing.
  • Constructor Details

    • SwingHelper

      public SwingHelper()
  • Method Details

    • isMultipleSelectionKey

      public static boolean isMultipleSelectionKey(InputEvent event)
    • getMultipleSelectionKey

      public static int getMultipleSelectionKey()
    • getTopLayeredPane

      public static JLayeredPane getTopLayeredPane(Component c)
    • convertScreenLocationToParent

      public static Point convertScreenLocationToParent(Container parent, int x, int y)
      Converts the location x y to the parents coordinate system, returning the location.
    • getBoundsOnScreen

      public static Rectangle getBoundsOnScreen(Component c)
    • setFocusable

      public static void setFocusable(Container parent, boolean focusable)
    • center

      public static void center(Container parent, Component component)
    • centerBottom

      public static void centerBottom(Container parent, Component component)
    • isDescendingFrom

      public static boolean isDescendingFrom(Component focusOwner, Component parent)