JComponent () { final JPanel panel = new JPanel(new BorderLayout()); String message = JavaRefactoringBundle.message("inline.parameter.confirmation", myParameter.getName(), myInitializer.getText()); JLabel label = new JLabel(message, UIManager.getIcon("OptionPane.questionIcon"), SwingConstants.LEFT); panel.add(label, BorderLayout.NORTH); return panel; }