public class SecurityUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BOLD |
static String |
BOLD_ITALIC |
static String |
ITALIC |
Constructor and Description |
---|
SecurityUtils() |
Modifier and Type | Method and Description |
---|---|
static Font |
createFont(String name,
int style,
int size)
Creates font.
|
static FontUIResource |
createFontUIResource(String name,
int style,
int size) |
static String |
getProperty(String key,
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 String BOLD
public static final String ITALIC
public static final String BOLD_ITALIC
public static FontUIResource createFontUIResource(String name, int style, int size)
public static Font createFont(String name, int style, int size)
name
- the font name.style
- the font style.size
- the font size.public static String getProperty(String key, 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.