Hi, 1>I have catch the DatabaseException in my client\server,but I don't know in which case it will occur and what message I should tell the usre? 2>When the user starts the server and the client is started in other computer, the server must have a detail name(e.g. 192.168.0.1) or the user could not connect it.So the user who start the server must input hostname except localhost and port is option. Is that right? 3>I saw some forum talk about JEditPane,but I never use it,and don't know where it is. Could you expain it ? Thanks
1. Well if the place the error occurs it creates the DatabaseException, you can add a message to it, and that is what you would want to display in the nice pretty JDialog or JOptionPane. 2. If you are using IP and the default port, then the server does not need that information given to it. It already knows it because the IP address is the address of the machine on the network, and the port would be 1099. 3. I didn't use a JEditPane so I can't help you here. Mark
3>I saw some forum talk about JEditPane,but I never use it,and don't know where it is. Could you expain it ?
Do you mean JEditorPane? The JEditorPane class is used for editting and displaying formatted text, especially HTML. So it is what many candidates use for the online help files when the user selects help from the application. 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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com