Floating button behavior

In an AWT panel, I wish to have buttons that will realign or wrap automatically based on button-size / screen size relationships, forcing buttons to new rows where appropriate. The AWT tool panel is a prime example. If the view for the JPanel is shrunken, the icons will wrap. How is this behavior best duplicated in JPanel? I found an autowrap (greyed-out) property on the Panel; using it does not accomplish the behavior in panel preview. Is this only applicable to the Buttons themselves perhaps?
Thanks in advance.

Please sign in to leave a comment.