add text to jlable code example Example: add text to jlable JLabel label = new JLabel("Whatever text"); or label.setText("Whatever Text");