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

incomplete doc for DefaultTreeCellEditor.EditorContainer

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.5.1



      Name: sdC67446 Date: 04/07/99


      The doc for inner class
      javax.swing.tree.DefaultTreeCellEditor.EditorContainer says nothing
      about the behaviour of:
      public Dimension getPreferredSize()

      For example:
       it currently calculates Dimension.width like this:

       width =
         Math.max(editingComponent.getPreferredSize()+offset+5, // 5 ?!
                  100) // 100 ?!

      The doc says:
      ________
      public Dimension getPreferredSize()

             Returns the preferred size for the Container. This will be the
             preferred size of the editor offset by offset.
             Overrides:
                    getPreferredSize in class Container
      ________
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: