Class UIUtil

java.lang.Object
com.sshtools.common.ui.UIUtil
All Implemented Interfaces:
SwingConstants

public class UIUtil extends Object implements SwingConstants
Version:
$Revision: 1.16 $
Author:
$author$
  • Constructor Details

    • UIUtil

      public UIUtil()
  • Method Details

    • 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:
      character - mnemonic string
      Returns:
      mnemonic
    • 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
    • jGridBagAdd

      public static void jGridBagAdd(JComponent parent, Component componentToAdd, GridBagConstraints constraints, int pos)
      Parameters:
      parent -
      componentToAdd -
      constraints -
      pos -
      Throws:
      IllegalArgumentException
    • positionComponent

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