| Type Params | Return Type | Name and description |
|---|---|---|
|
JLabelBuilder |
withHorizontalTextPosition(int textPosition)Sets the horizontal position of the label's text, relative to its image. |
|
JLabelBuilder |
withIcon(javax.swing.Icon icon) |
|
JLabelBuilder |
withText(java.lang.String text) |
| Methods inherited from class | Name |
|---|---|
class JComponentBuilder |
addTo, addTo, build, withAlignmentX, withAlignmentY, withBackground, withBorder, withComponentPopupMenu, withCursor, withFocusListener, withFont, withForeground, withLayout, withMouseListener, withName, withOpaque, withPropertyChangeListener, withToolTipText |
Sets the horizontal position of the label's text, relative to its image.
textPosition - One of the following constants
defined in SwingConstants:
LEFT,
CENTER,
RIGHT,
LEADING, or
TRAILING (the default).