-
Enhancement
-
Resolution: Fixed
-
P4
-
1.2.2
-
beta
-
x86
-
windows_nt
Name: krT82822 Date: 10/24/99
JNI & the included source for java.exe on win 95/NT is awesome, but since every frame created by the JVM has a Windows Classname (lpszClassName) of "SunAwtFrame", I can't programmatically differentiate against them in any useful way.
I.e. my application should only have one instance running at a time, but the standard calls to FindWindow() will return the most recently used java.awt.Frame. Therefore, if HotJava is running, my app may find my java.awt.Frame, or FindWindow() may find the HotJava frame.
Why not simply append either the Java main() class's class name to the win32 lpszClassName, or perhaps the Java class name of the actual JFrame instance.
(And that's damned confusing to talk to class names class names that need new class names...)
(Review ID: 96762)
======================================================================