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

BasicInternalFrameUI.replacePane method has wrong JavaDoc comments

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: nkR10003 Date: 09/21/2000


      JavaDoc comments for BasicInternalFrameUI.replacePane method state:
      "Adds necessary mouseHandlers to currentPane and adds it to frame.
      Reverse process for the newPane." But behavior of the method is quite
      different. Method removes currentPane and adds newPane (same with the
      listeners).

      See piece of source code below:

      //BasicInternalFrameUI

      protected void replacePane(JComponent currentPane, JComponent newPane) {
          if(currentPane != null) {
              deinstallMouseHandlers(currentPane);
              frame.remove(currentPane);
          }
          if(newPane != null) {
             frame.add(newPane);
             installMouseHandlers(newPane);
          }
      }
      ---------------------------------------------

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            kwalrathsunw Kathy Walrath (Inactive)
            Reporter:
            knasunw Kna Kna (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: