my dog learned polymorphism
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes 3 questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "3 questions" Watch "3 questions" New topic

3 questions

Ray Cheeny
Ranch Hand

Joined: Aug 21, 2002
Posts: 74
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. 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 ?
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
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

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 agree. Here's the link:
subject: 3 questions
It's not a secret anymore!