!747 !multi-line strings m { static S html = [[ Bold and italic. ]]; p { makeFrame(new JLabel(html.trim())); // trim is important! } static void makeFrame(Component content) { JFrame frame = new JFrame("JavaX"); frame.getContentPane().add(content); frame.setBounds(300, 100, 500, 400); frame.setVisible(true); exitOnFrameClose(frame); } }