SetIconTextGap(int newGap) Sets the gap between the icon and the text, in the case that both are SetIcon( Icon newIcon) Sets the icon for the label (this is a bound property with the name Is a bound property with the name 'horizontalTextPosition'). SetHorizontalTextPosition(int textPosition) Sets the horizontal position of the label's text relative to the icon (this SetHorizontalAlignment(int alignment) Sets the horizontal alignment for the label (this is a bound property with SetFont( Font f) Sets the font for the label (this a bound property with the name 'font'). Indicate that it is the mnemonic character for the label. SetDisplayedMnemonicIndex(int newIndex) Sets the index of the character in the text that will be underlined to Property with the name 'displayedMnemonic'). SetDisplayedMnemonic(int mnemonic) Sets the keycode that will be the label's mnemonic (this is a bound SetDisplayedMnemonic(char mnemonic) Sets the character that will be the label's mnemonic. SetDisabledIcon( Icon newIcon) Sets the icon displayed when the label is disabled (this is a bound ParamString() Returns a string describing the attributes for the JLabel Whether the label is enabled) is not equal to the passed in image. ImageUpdate( Image img, int infoflags, int x, int y, int w, int h) Returns false if the current icon image (current icon will depend on GetVerticalTextPosition() Returns the vertical position of the label's text relative to the icon. SwingConstants.TOP, SwingConstants.CENTER and SwingConstants.BOTTOM). GetVerticalAlignment() Returns the vertical alignment of the label (one of GetUIClassID() Returns a name to identify which look and feel class will be GetText() Returns the text displayed by the label. GetLabelFor() Returns the component that this JLabel is providing the label GetIconTextGap() Returns the gap between the icon and the text. GetHorizontalTextPosition() Returns the horizontal position of the label's text relative to the icon. SwingConstants.CENTER, SwingConstants.RIGHT, SwingConstants.LEADING and SwingConstants.TRAILING). GetHorizontalAlignment() Returns the horizontal alignment of the label (one of SwingConstants.LEFT, Underlined (to indicate that it is the mnemonic character), or -1 if no GetDisplayedMnemonicIndex() Returns the index of the character in the label's text that will be GetDisplayedMnemonic() Returns the keycode that is used for the label's mnemonic. GetDisabledIcon() Returns the disabled icon. GetAccessibleContext() Returns the object that provides accessibility features for this JLabel( Icon image, int horizontalAlignment) Creates a new vertically centered JLabel object with no text and theĬheckHorizontalKey(int key, String message) Checks the specified key to ensure that it is valid as a horizontalĪlignment, throwing an IllegalArgumentException if the key isĬheckVerticalKey(int key, String message) Checks the specified key to ensure that it is valid as a vertical JLabel object with no text and the given icon. JLabel( Icon image) Creates a new vertically and horizontally centered JLabel( String text, Icon icon, int horizontalAlignment) Creates a new vertically centered JLabel object with the given text, JLabel( String text, int horizontalAlignment) Creates a new vertically centered JLabel object with no icon and the JLabel( String text) Creates a new horizontally leading and vertically centered JLabel JLabel() Creates a new vertically centered, horizontally on the leading edge SwingConstantsīOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST ImageObserverĪBORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHįields inherited from interface javax.swing. ComponentīOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTįields inherited from interface. TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, accessibleContext, listenerList, uiįields inherited from class java.awt. LabelFor The Component the label will give focus to when its mnemonic isįields inherited from class javax.swing. ComponentĬomponent.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy Nested classes/interfaces inherited from class java.awt. Nested classes/interfaces inherited from class javax.swing. JLabel.AccessibleJLabel Provides the accessibility features for the JLabel
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |