Skip to content
Snippets Groups Projects
Commit f3282a87 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

better ConfigCreator size management

parent f0eb7f70
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,10 @@ public class ConfigCreator extends ANamedDataChooser { ...@@ -148,7 +148,10 @@ public class ConfigCreator extends ANamedDataChooser {
IConfigNameChecker checker) { IConfigNameChecker checker) {
ConfigCreator creator = new ConfigCreator(WindowSwingUtils.getWindowForComponent(parent), flyScanVersion, ConfigCreator creator = new ConfigCreator(WindowSwingUtils.getWindowForComponent(parent), flyScanVersion,
template, checker); template, checker);
creator.nameField.setText(creator.getTitle());
creator.pack(); creator.pack();
creator.nameField.setText(ObjectUtils.EMPTY_STRING);
creator.setSize(creator.getWidth() + 50, creator.getHeight());
creator.errorLabel.setText(ObjectUtils.EMPTY_STRING); creator.errorLabel.setText(ObjectUtils.EMPTY_STRING);
creator.setLocationRelativeTo(parent.isShowing() ? parent : creator.getOwner()); creator.setLocationRelativeTo(parent.isShowing() ? parent : creator.getOwner());
creator.setVisible(true); creator.setVisible(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment