com.sshtools.common.ui
Class UIUtil
java.lang.Object
com.sshtools.common.ui.UIUtil
- SwingConstants
public class UIUtil
extends java.lang.Object
implements SwingConstants
static void | jGridBagAdd(JComponent parent, Component componentToAdd, GridBagConstraints constraints, int pos)
|
static KeyStroke | parseAcceleratorString(String string) - Parse a string in the format of [ALT+|CTRL+|SHIFT+] to
create a keystroke.
|
static Integer | parseMnemonicString(String string) - Parse a string in the format of
[character] to create an
Integer that may be used for an action.
|
static void | positionComponent(int p, Component c)
|
jGridBagAdd
public static void jGridBagAdd(JComponent parent,
Component componentToAdd,
GridBagConstraints constraints,
int pos)
parent
- componentToAdd
- constraints
- pos
-
parseAcceleratorString
public static KeyStroke parseAcceleratorString(String string)
Parse a string in the format of [ALT+|CTRL+|SHIFT+] to
create a keystroke. This can be used to define accelerators from
resource bundles
string
- accelerator string
parseMnemonicString
public static Integer parseMnemonicString(String string)
Parse a string in the format of [character]
to create an
Integer that may be used for an action.
positionComponent
public static void positionComponent(int p,
Component c)
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.