This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: Why can't you ... (WAS: Database access from another class - Java) ~Umberto Nongeroson 2.Oct.03 07:11 PM a Web browser General All ReleasesWindows 2000
Not bad, Ben. That has all the elements that make for a decent GUI based Java Agent. The only think I would change is remove the NotesThread.stermThread() call. In essence, the JVM starts the AWT thread as needed and it lives for the life of the JVM. If you do an init/term each time, you are going to see a perfornace problem. So just do the init each time, it only really does something the first time through, everytime there after, it's pretty much a no-op with some call overhead. If you leave the stermThread() there, each time init is called it has to reinitialize Notes on that thread. If you want to you can do an stermThread() on the window closing event.
--Joe
Joseph Millar
Principal Software Engineer
Brightline Technology