vlsi commented on code in PR #5870:
URL: https://github.com/apache/jmeter/pull/5870#discussion_r1181125830
##########
src/core/src/main/java/org/apache/jmeter/gui/action/SelectTemplatesDialog.java:
##########
@@ -260,7 +261,9 @@ public void windowClosing(WindowEvent evt){
this.pack();
this.setMinimumSize(new Dimension(MINIMAL_BOX_WIDTH,
MINIMAL_BOX_HEIGHT));
- ComponentUtil.centerComponentInWindow(this, 50); // center position
and 50% of screen size
+ SwingUtilities.invokeLater(() ->
+ ComponentUtil.centerComponentInWindow(this, 50) // center position
and 50% of screen size
+ );
populateTemplatePage();
Review Comment:
I've no idea. I would move it just in case. However, it might look all the
others need to be on the UI thread. Should we create the class on the UI thread
in the first place?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]