JComponent () { JLabel label = new JLabel(JavaDebuggerBundle.message("hotswap.dialog.run.prompt")); JPanel panel = new JPanel(new BorderLayout()); panel.add(label, BorderLayout.CENTER); Icon icon = UIUtil.getQuestionIcon(); label.setIcon(icon); label.setIconTextGap(7); if (myDisplayHangWarning) { final JLabel warningLabel = new JLabel( JavaDebuggerBundle.message("warning.0", JavaDebuggerBundle.message("hotswap.dialog.hang.warning"))); warningLabel.setUI(new MultiLineLabelUI()); panel.add(warningLabel, BorderLayout.SOUTH); } return panel; }