-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.3.1, 1.4.1
-
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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-4870112 JMenu is not extensible
-
- Closed
-
- relates to
-
JDK-4763202 RFE: JMenu is difficult to extend
-
- Open
-