Hi f,
i am looking for a simple way to display the name of the server on my server gui. I know this is unnesseccary for the assignment, but it will help me.
On the server GUI's JFrame just call super(title) (assuming you subclass JFrame) in the GUI constructor or call setTitle(title). Of course the title will have to be initialized to the server name. Or you could dedicate a JLabel somewhere on the GUI to display it.
Another question, are you allowed to use the System.getProperty methods to retrieve the user directory.
Of course. Feel free to use any tool available to you in the J2SE arsenal.
Hope this helps,
Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher