> > "angussc2" <a@b.com> wrote in message
> news:2k32aeF16mj7uU1@uni-berlin.de...
[quoted text clipped - 22 lines]
> from my first post you'll see my problem. I've tried
> this.getContentPane().setLayout(new FlowLayout()); but nothing changes.
Sorry.
> I don't want to change the layout of the JFrame, I want the layout to work
> correctly in the JPanel
Tough, BorderLayout is not designed to work correctly with FlowLayout
containers (Except CENTER). NORTH for instance can be stretched in width
but the height maintains a preferred height of the child, this will be the
height of one row in FlowLayout. Suggest you use a different
LayoutManager/Component nesting organisation.
--
Mike W
angussc2 - 25 Jun 2004 22:44 GMT
> Tough, BorderLayout is not designed to work correctly with FlowLayout
> containers (Except CENTER). NORTH for instance can be stretched in width
[quoted text clipped - 4 lines]
> --
> Mike W
Ok, thought that might be the case, I'll probably write my own Layout
Manager
Thanks
Angus