I would like to show a running process stage with a pop-up frame. The created a javax.swing.JFrame is:
The input String text is produced in a for loop like:
When I use this.setLocationByPlatform(true) in the Frame it will produce the correct Frame but I will get the error after the first step of the loop:
java.awt.IllegalComponentStateException: The window is showing on screen.
If I skip the setLocationByPlatform it will produce an empty Frame. Could someone suggest me a way for getting one Frame where the string will change according to the loop?