mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: use a label instead of a text field
This commit is contained in:
+2
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user