public class SwingUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAction(@NotNull javax.swing.JComponent textComponent,
@NotNull javax.swing.Action action)
Adds an accelerator key for a component.
|
static @NotNull java.awt.Component |
createLabel(@NotNull java.lang.String key,
@Nullable java.awt.Component component)
Creates a
JLabel instance. |
@NotNull
public static @NotNull java.awt.Component createLabel(@NotNull
@NotNull java.lang.String key,
@Nullable
@Nullable java.awt.Component component)
JLabel instance.key - the action key to usecomponent - the component this label is attached topublic static void addAction(@NotNull
@NotNull javax.swing.JComponent textComponent,
@NotNull
@NotNull javax.swing.Action action)
textComponent - the text component to add toaction - the action to add