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

JPopupMenu hardcoded i JMenu

XMLWordPrintable

    • Fix Understood
    • x86
    • windows_nt, windows_2000

      Name: gm110360 Date: 05/21/2002


      FULL PRODUCT VERSION :
      Java(TM) 2 Runtime Environment, Standard Edition (build
      Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]



      A DESCRIPTION OF THE PROBLEM :
      I have subclassed JPopupMenu and i would like to use it in
      my rather large menu-trees. However, JMenu is hardcoded to
      crate JPopupMenu's. The methods and jpopupMenu member is
      private and it is therefore not possible to change this
      behavior with subclassing.

      JMenu should have the possibility to (in the constructor)
      add a subclassed version of JPopupMenu instead. It should
      at least be possible to overide the ensurePopupCreated()
      method och member popupMenu.

      This should not break backward compatibility and is very
      easy to implement.


      This bug can be reproduced always.

      CUSTOMER WORKAROUND :
      none that I know of
      (Review ID: 138856)
      ======================================================================

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: