Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4284277

Add Java main() class name to Win32 lpszClassName for java.awt.Frames

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2
    • client-libs
    • 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)
      ======================================================================

            rraysunw Richard Ray (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: