public class WinUtils
extends java.lang.Object
| 构造器和说明 |
|---|
WinUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
isLeftToRight(java.awt.Component c)
是否组件的排列方向是从左到右.
|
static boolean |
isMnemonicHidden()
Gets the state of the hide mnemonic flag.
|
static boolean |
isOnVista()
Checks if is on vista.
|
static void |
paintText(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle textRect,
java.lang.String text,
int textShiftOffset)
Renders a text String in Windows without the mnemonic.
|
public static boolean isMnemonicHidden()
#setMnemonicHiddenpublic static boolean isOnVista()
public static void paintText(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle textRect,
java.lang.String text,
int textShiftOffset)
g - Graphics contextb - Current button to rendertextRect - Bounding rectangle to render the text.text - String to rendertextShiftOffset - the text shift offsetpublic static boolean isLeftToRight(java.awt.Component c)
c - the c