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

Unclear behaviour of LayoutManager's methods in JSpinner.DefaultEditor

XMLWordPrintable

    • Cause Known
    • x86
    • windows_xp

      Methods of JSpinner.DefaultEditor from LayoutManager interface
          public java.awt.Dimension preferredLayoutSize(Container parent)
          public java.awt.Dimension minimumLayoutSize(Container parent)
          public void layoutContainer(Container parent)
      have unclear parameter "parent".
      Documentation contains following description:
          parent - the Container that's managing the layout
      But it seems that this parameter must always be set to the reference to "this" JSpinner.DefaultEditor object, because JSpinner.DefaultEditor's implementation of LayoutManager interface can only layout JSpinner.DefaultEditor object and it relies on the fact that "parent" has one and the only child. Documentation should specify the behaviour of these methods when parameter "parent" is not the JSpinner.DefaultEditor.
      ###@###.### 10/20/04 08:30 GMT

            peterz Peter Zhelezniakov
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: