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 voidstatic voidcenterBottom(Container parent, Component component) static PointconvertScreenLocationToParent(Container parent, int x, int y) Converts the locationxyto the parents coordinate system, returning the location.static Rectanglestatic intstatic JLayeredPanestatic booleanisDescendingFrom(Component focusOwner, Component parent) static booleanisMultipleSelectionKey(InputEvent event) static voidsetFocusable(Container parent, boolean focusable)
-
Constructor Details
-
SwingHelper
public SwingHelper()
-
-
Method Details
-
isMultipleSelectionKey
-
getMultipleSelectionKey
public static int getMultipleSelectionKey() -
getTopLayeredPane
-
convertScreenLocationToParent
Converts the locationxyto the parents coordinate system, returning the location. -
getBoundsOnScreen
-
setFocusable
-
center
-
centerBottom
-
isDescendingFrom
-