- Method in class javax.swing.AbstractButton protected int checkHorizontalKey (int key, String  exception) Verify that key is a legal value for the horizontalAlignment properties.Parameters: key - the property value to check - the IllegalArgumentException detail messageexception - the IllegalArgumentException detail messageThrows:IllegalArgumentException - if key isn't LEFT, CENTER, RIGHT, LEADING or TRAILING.See Also: setHorizontalTextPosition(int) , setHorizontalAlignment(int)
- Method in class javax.swing.JLabel protected int checkHorizontalKey (int key, String  message) Verify that key is a legal value for the horizontalAlignment properties.Parameters: key - the property value to check - the IllegalArgumentException detail messagemessage - the IllegalArgumentException detail messageThrows:IllegalArgumentException - if key isn't LEFT, CENTER, RIGHT, LEADING or TRAILING.See Also: setHorizontalTextPosition(int) , setHorizontalAlignment(int)