public class JLabel extends Component
This class provides a minimal stub implementation of a text label component to allow the NDT tool to run in headless environments. The label can display text but provides no actual rendering functionality.
All operations are no-ops, maintaining API compatibility without requiring an actual graphical display system.
| Constructor and Description |
|---|
JLabel() |
JLabel(String s)Create a label with the given text. |
| Modifier and Type | Method and Description |
|---|---|
void | setAlignmentY(float f)Set the alignment Y value. |
void | setText(String s)Set the label text. |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic JLabel()
public JLabel(String s)
s - the label textpublic void setAlignmentY(float f)
f - the alignment valuepublic void setText(String s)
s - the text to set