com.sshtools.common.ui

Class UIUtil

Implemented Interfaces:
SwingConstants

public class UIUtil
extends java.lang.Object
implements SwingConstants

Version:
$Revision: 1.16 $
Author:
$author$

Method Summary

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)

Method Details

jGridBagAdd

public static void jGridBagAdd(JComponent parent,
                               Component componentToAdd,
                               GridBagConstraints constraints,
                               int pos)
Parameters:
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
Parameters:
string - accelerator string
Returns:
keystroke

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.
Parameters:
Returns:
mnemonic

positionComponent

public static void positionComponent(int p,
                                     Component c)
Parameters:
p -
c -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.