Ask coding questions

← Back to all posts
For Java Swing repls, why is JFrame.setLocation() ignored?
VernTakebayashi

The attached repl has a simple Java Swing program that has a main window and places two windows on top of it. The two windows should not be overlapping as the second window as its location changed using:
wind2.setLocation(100,100);

If tested outside of replit.com, the program runs as expected. Can you explain why the setLocation() method does not work properly with the repl?

Thanks,
Vern

Voters
VernTakebayashi
Comments
hotnewtop
Coder100

It's probably a limitation or a bug of the replit virtual machine, you can report it as a bug: