Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

3 questions

 
Ray Cheeny
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ray,

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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic