void (final String @NotNull ... text) { myText.removeAll(); for (int i = 0; i < text.length; i++) { final JLabel eachLabel = new JLabel(text[i], SwingConstants.CENTER); eachLabel.setBorder(new EmptyBorder(0, 0, 0, 5)); eachLabel.setFont(RelativeFont.BOLD.derive(eachLabel.getFont())); myText.add(eachLabel); if (i < text.length - 1) { final JLabel eachIcon = new JLabel("\u203A", SwingConstants.CENTER); eachIcon.setFont(RelativeFont.HUGE.derive(eachIcon.getFont())); eachIcon.setBorder(new EmptyBorder(0, 0, 0, 5)); myText.add(eachIcon); } } }