-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
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
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