Package net.runelite.client.util
Class SwingUtil
- java.lang.Object
-
- net.runelite.client.util.SwingUtil
-
public class SwingUtil extends java.lang.ObjectVarious Swing utilities.
-
-
Constructor Summary
Constructors Constructor Description SwingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidactivate(java.lang.Object maybeActivatable)static voidaddModalTooltip(javax.swing.AbstractButton button, java.lang.String on, java.lang.String off)static voiddeactivate(java.lang.Object maybeActivatable)static voidfastRemoveAll(java.awt.Container c)Removes all of a component's children faster than calling removeAll() on it in many casesstatic voidpumpPendingEvents()Run any events currently in the event queuestatic voidremoveButtonDecorations(javax.swing.AbstractButton button)
-
-
-
Method Detail
-
removeButtonDecorations
public static void removeButtonDecorations(javax.swing.AbstractButton button)
-
addModalTooltip
public static void addModalTooltip(javax.swing.AbstractButton button, java.lang.String on, java.lang.String off)
-
fastRemoveAll
public static void fastRemoveAll(java.awt.Container c)
Removes all of a component's children faster than calling removeAll() on it in many cases
-
pumpPendingEvents
public static void pumpPendingEvents()
Run any events currently in the event queue
-
activate
public static void activate(@Nullable java.lang.Object maybeActivatable)
-
deactivate
public static void deactivate(@Nullable java.lang.Object maybeActivatable)
-
-