-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
1.1.6, 1.1.7, 1.2.0
-
Fix Understood
-
generic, x86
-
generic, windows_95, windows_nt
Name: rk38400 Date: 11/11/98
Why BoxLayout constructor needs Container as
parameter?
This makes it inconsistent with all the other
existing LayoutManagers and also makes it really
difficult to use in IDEs and GUI builders - and
consequently for developers. JBuilder has a
wrapper class BoxLayout2 that enables BoxLayout
use in IDE but then I have to worry about including
it with my applications.
Looking quickly through the BoxLayout source
I can't see any reason for 'target' field
(where Container parameter goes) to exist. You
pass Container to any BoxLayout method anyway.
(Review ID: 42550)
======================================================================
Name: krT82822 Date: 06/19/99
public myclass extends JPanel
{
myclass()
{
imagePanel = new JPanel()
imagePanel.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
"BoxLayout(this..." should have been "BoxLayout(imagePanel..."
Nothing happens after this - no message. Event dispatching
still occurs, but the JFrame that owns "myclass" never gets
created. Lost much time finding this. Should at least print
error message to stdout or similar. Doesn't hang, but has
similar impact on productivity.
(Review ID: 54100)
======================================================================
Why BoxLayout constructor needs Container as
parameter?
This makes it inconsistent with all the other
existing LayoutManagers and also makes it really
difficult to use in IDEs and GUI builders - and
consequently for developers. JBuilder has a
wrapper class BoxLayout2 that enables BoxLayout
use in IDE but then I have to worry about including
it with my applications.
Looking quickly through the BoxLayout source
I can't see any reason for 'target' field
(where Container parameter goes) to exist. You
pass Container to any BoxLayout method anyway.
(Review ID: 42550)
======================================================================
Name: krT82822 Date: 06/19/99
public myclass extends JPanel
{
myclass()
{
imagePanel = new JPanel()
imagePanel.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
"BoxLayout(this..." should have been "BoxLayout(imagePanel..."
Nothing happens after this - no message. Event dispatching
still occurs, but the JFrame that owns "myclass" never gets
created. Lost much time finding this. Should at least print
error message to stdout or similar. Doesn't hang, but has
similar impact on productivity.
(Review ID: 54100)
======================================================================