SSR: use a label instead of a text field

This commit is contained in:
Bas Leijdekkers
2015-02-20 14:17:06 +01:00
parent 90fcf392cc
commit 8fff0ae91d
@@ -612,13 +612,10 @@ class EditVarConstraintsDialog extends DialogWrapper {
}
protected JComponent createCenterPanel() {
JPanel panel = new JPanel(new BorderLayout());
final JPanel panel = new JPanel(new BorderLayout());
panel.add(editor.getComponent(), BorderLayout.CENTER);
if (!title.isEmpty()) {
JTextField f=new JTextField(title);
f.setEditable(false);
f.setBorder(null);
panel.add(f, BorderLayout.SOUTH);
panel.add(new JLabel(title), BorderLayout.SOUTH);
}
return panel;
}