bug-classpath
[Top][All Lists]
Advanced

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

[bug-classpath] [bug #13695] Swing: ActionCommand and paramString broken


From: Beat Wolf
Subject: [bug-classpath] [bug #13695] Swing: ActionCommand and paramString broken in most buttions, with fix
Date: Fri, 8 Jul 2005 14:57:36 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13695>

                 Summary: Swing: ActionCommand and paramString broken in most
buttions, with fix
                 Project: classpath
            Submitted by: asraniel
            Submitted on: Fre 08.07.2005 um 14:57
                Category: None
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

Most classes that are childs of AbstractButton(or are childs of a child...)
implement the fonction paramString wrong.
They implement it like this:
  protected  String paramString()
  {
    return "NameOfClass";
  }

but they should implement it like this:

  protected  String paramString()
  {
    return super.paramString();
  }

and also the ActionCommand is wrong for nearly every Button.
They need a setActionCommand(text);
Put it in the init() if there is one, and if there is none, put it in the
constructor.
Take care that sometimes, a class like JRadioButton calls the constructor of
JToggleButton where we already have a setActionCommand(text); (at least there
should be one if the fix of my other bugreport is applied), so there is no
need for anoterh setActionCommand(text); in JRadioButton.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13695>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/





reply via email to

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