[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-classpath] [bug #13643] JMenuItem getActionCommand should not retur

From: anonymous
Subject: [bug-classpath] [bug #13643] JMenuItem getActionCommand should not return null
Date: Tue, 5 Jul 2005 06:20:38 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217


                 Summary: JMenuItem getActionCommand should not return null
                 Project: classpath
            Submitted by: None
            Submitted on: Die 05.07.2005 um 02:20
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None



I have an application that uses the string returned by
JMenuItem.getActionCommand() to index into a Hashtable
and then to dispatch to individual actions via reflection.

The JDK returns the current JMenuItem label/text in getActionCommand() until
setActionCommand() is called with
some other value. Classpath returns null, which breaks my app.

Could someone with FSF paperwork please add a corresponding
fix to JMenuItem (constructors) or should this go into
A similar workaround is already used in java.awt.MenuItem.


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]