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

Added the possibility to change source for ErrorNotificationDelegate

parent 538d3535
No related branches found
No related tags found
No related merge requests found
...@@ -159,7 +159,7 @@ public class ErrorNotificationDelegate { ...@@ -159,7 +159,7 @@ public class ErrorNotificationDelegate {
if (changed) { if (changed) {
messageDialog.setSize(width, height); messageDialog.setSize(width, height);
} }
messageDialog.setLocationRelativeTo(source); messageDialog.setLocationRelativeTo(getSource());
messageDialog.setVisible(true); messageDialog.setVisible(true);
} }
}; };
...@@ -170,4 +170,12 @@ public class ErrorNotificationDelegate { ...@@ -170,4 +170,12 @@ public class ErrorNotificationDelegate {
} }
} }
public Component getSource() {
return source;
}
public void setSource(Component source) {
this.source = source;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment