Is it possible for Eclipse to only open one JFrame?

John Joe :

When run the project second time, can the previous JFrame closed before open the new one ?

So I no need to close the JFrame when trying to run the project second time.

enter image description here

Is it possible to open only one JFrame?

Tobias Walter :

Eclipse has the possibility of terminating the launched program before starting the new one: It is called Terminate and Relaunch (see the Documentation).

You can bind this to any shortcut you like (Window -> Preferences -> General -> Keys).

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=435521&siteId=1