cz.vity.freerapid.swing
Class SwingUtils
java.lang.Object
cz.vity.freerapid.swing.SwingUtils
public final class SwingUtils
- extends Object
Utility pro Swing
- Author:
- Vity
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyToClipboard
public static void copyToClipboard(String text,
ClipboardOwner owner)
showPopMenu
public static void showPopMenu(JPopupMenu popupMenu,
MouseEvent e,
Component source,
Component destination)
getKeyStroke
public static KeyStroke getKeyStroke(int keyCode)
getCtrlKeyStroke
public static KeyStroke getCtrlKeyStroke(int keyCode)
getShiftKeyStroke
public static KeyStroke getShiftKeyStroke(int keyCode)
getAltKeyStroke
public static KeyStroke getAltKeyStroke(int keyCode)
keyStroke2String
public static String keyStroke2String(KeyStroke key)
- Metoda prevede klavesovou zkratku na jeji textovou reprezentaci
- Parameters:
key
- klavesova zkratka
- Returns:
- kl. zkratka jako retezec ve formatu prepinac+klavesa - napr. Ctrl+K
getKeyText
static String getKeyText(int keyCode)
getCtrlAltKeyStroke
public static KeyStroke getCtrlAltKeyStroke(int vkC)
getCtrlShiftKeyStroke
public static KeyStroke getCtrlShiftKeyStroke(int vkC)