Package com.macrofocus.helper
Class SwingHelper
java.lang.Object
com.macrofocus.helper.SwingHelper
Helper class for dealing with Swing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
centerBottom
(Container parent, Component component) static Point
convertScreenLocationToParent
(Container parent, int x, int y) Converts the locationx
y
to the parents coordinate system, returning the location.static Rectangle
static int
static JLayeredPane
static boolean
isDescendingFrom
(Component focusOwner, Component parent) static boolean
isMultipleSelectionKey
(InputEvent event) static void
setFocusable
(Container parent, boolean focusable)
-
Constructor Details
-
SwingHelper
public SwingHelper()
-
-
Method Details
-
isMultipleSelectionKey
-
getMultipleSelectionKey
public static int getMultipleSelectionKey() -
getTopLayeredPane
-
convertScreenLocationToParent
Converts the locationx
y
to the parents coordinate system, returning the location. -
getBoundsOnScreen
-
setFocusable
-
center
-
centerBottom
-
isDescendingFrom
-