public class JLabelBuilder extends JComponentBuilder
Type Params | Return Type | Name and description |
---|---|---|
|
public JLabelBuilder |
withHorizontalTextPosition(int textPosition) Sets the horizontal position of the label's text, relative to its image. |
|
public JLabelBuilder |
withIcon(javax.swing.Icon icon) |
|
public 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).