Hey there, hopefully my question is simple enough to answer, I've been following the SCJD Exam with J2SE 5 Platform book.
My issue is that the server starts fine, but the MainWindow doesn't open, and the ServerWindow just hangs there. Am I missing something?
(As a note, once I close or exit the server window, my application continues to run and process the underlying classes which is evident in the logging details)
James T John wrote:My issue is that the server starts fine, but the MainWindow doesn't open, and the ServerWindow just hangs there. Am I missing something?
When you start the application with the program argument 'server' your ServerWindow will be shown. What is your MainWindow? The client GUI? I don't understand why that window should appear when you start in server mode...
I guess something like this should happen:
Start application with argument 'server': -> Start the server and show the ServerWindow.
Start application without an argument: -> Start the network client, connecting to the server and spawn your MainWindow
Hi James. I too am working off the same book as you. The code for this book is freely available on the website for the book so I have posted up the code and the commands I used to run on it on this post here. Everything worked fine for me. Hope this helps.
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
James T John
posted 9 years ago
Thanks guys, all the tips were helpful. Thanks Sean for posting the link to the commands, that's exactly the process I was looking for.
I've got no option but to sell you all for scientific experiments. Or a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!