This content has been marked as final. Show 2 replies
user8995776 wrote:That's a client-server application. The server side won't have any GUI (well, can, but it doesn't need one).
My task is to create a Java program which runs indefinitely on a server. Only 1 Instance of the program is allowed. The program is accessible by multiple users. The interaction with the Java program is supposed to be with a Swing UI.
The question: When the Java program is running and I log in as different user (or even as the same), how can I get the Java program to show me the Swing UI for program interaction (e. g. alter settings)?
I recommend the services of Google for more information.
nvm, found a solution here:
I just call the same program again. If it's already running I use frame.setVisible(true) to make the gui visible.
If someone knows a better approach, please let me know. Thanks!