• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

3 questions

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic