James and everyone --

Here is my post to the JTOpen team:

When connecting via a java program running off platform and using an AS400
object which does not specify a user id or password, an AWT Dialog box
generally pops up soliciting the user to enter a user id and password. The
dialog box contains an OK button and a cancel button. When either button is
pressed, the actionPerformed method of AS400SignonDialogAdapter (which has
been set as a listener on each button) is fired. Unfortunately, the action
performed method simply sets the visible property of the Dialog to false so
that the dialog box disappears from the screen. However, the Dialog is never
disposed off or made nondisplayable. This causes some AWT threads to hang
around. Since the threads are non-daemon threads, the java application never
ends on its own unless it calls System.exit().

Should the actionPerformed method instead call Dialog.dispose or at least
set displayable to false or something to cause the non-daemon threads to

Also see

And here is the reply:

Thanks for pointing this out. This would explain why some of our
command-line unit tests have needed to call System.exit() at the end.

I'll investigate.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.