import javax.swing.*; public class Y extends JFrame { /* \u2610= Empty box \u2611= Box with check \u2600, \u26FF= first and last character in code chart "Miscellaneous Symbols" */ final String TEXT= "\u2610 Hello \u2611\u2600\u26FF"; public Y() { setSize(300,150); setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); Box box= Box.createVerticalBox(); box.add(new JButton(TEXT)); box.add(new JLabel(TEXT)); box.add(new JTextField(TEXT)); add(box); setVisible(true); } public static void main(String args[]) { SwingUtilities.invokeLater(Y::new); } }