public class SecurityUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BOLD |
static java.lang.String |
BOLD_ITALIC |
static java.lang.String |
ITALIC |
| Constructor and Description |
|---|
SecurityUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Font |
createFont(java.lang.String name,
int style,
int size)
Creates font.
|
static javax.swing.plaf.FontUIResource |
createFontUIResource(java.lang.String name,
int style,
int size) |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Gets the system property.
|
static boolean |
isAWTEventListenerDisabled()
Checks if AWTEventListener is disabled.
|
static boolean |
isTranslucentWindowFeatureDisabled()
Checks if the translucent window feature is disabled.
|
static void |
setAWTEventListenerDisabled(boolean AWTEventListenerDisabled)
Enables or disables the usage of AWTEventListener.
|
static void |
setTranslucentWindowFeatureDisabled(boolean translucentWindowFeatureDisabled)
Disables or enables the usage of the translucent window feature available since JDK6u10.
|
public static final java.lang.String BOLD
public static final java.lang.String ITALIC
public static final java.lang.String BOLD_ITALIC
public static javax.swing.plaf.FontUIResource createFontUIResource(java.lang.String name,
int style,
int size)
public static java.awt.Font createFont(java.lang.String name,
int style,
int size)
name - the font name.style - the font style.size - the font size.public static java.lang.String getProperty(java.lang.String key,
java.lang.String defaultValue)
key - the property keydefaultValue - the default value for the property.public static boolean isAWTEventListenerDisabled()
public static void setAWTEventListenerDisabled(boolean AWTEventListenerDisabled)
AWTEventListenerDisabled - true or false.public static boolean isTranslucentWindowFeatureDisabled()
public static void setTranslucentWindowFeatureDisabled(boolean translucentWindowFeatureDisabled)
translucentWindowFeatureDisabled - true or false.