p.add(b);
}
f.add(p,BorderLayout.CENTER);
f.pack();
f.setVisible(true);
}
});
}
}
--
Knute Johnson
email s/nospam/linux/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDem
Actually, after a bit of testing, it may be because of the following
reason:
1. I have a JFrame with a BorderLayout.
2. Inside the JFrame, I have three panels. northPanel, centerPanel
and southPanel. The southPanel is the one that contains the
JCheckBoxes (and the FlowLayout).
3. When I resize the JFrame, it appears that the centerPanel receives
the benefit of the resize, but the south and north panels appear to
stay statically sized.
That's at least what I am seeing. Not sure if there is any way to
change/fix this.
not follow the same rules as the center. I would try GridBagLayout,
anything.