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

JTextComponent.java & JavaDoc output has params 2 & 3 reversed for loadKeyMap

XMLWordPrintable

    • swing1.0.2
    • x86
    • windows_nt

      Swing Source/JavaDoc output has parms 2 & 3 reversed for JTextComponent.loadKeyMap method.

      Using Swing 1.0.1 and JDK 1.1.5.

      To Reproduce: See com/sun/java/swing/text/JTextComponent.java lines 545-577

           *   JTextComponent c = new JTextPane();
           *   Keymap k = c.getKeymap();
           *   JTextComponent.loadKeymap(k, c.getActions(), defaultBindings);

      Yet, method is actually defined as:

      public static void loadKeymap(Keymap map, KeyBinding[] bindings, Action[] actions) {

            tprinzing Tim Prinzing
            jbenoit Jonathan Benoit (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: