I'm having layout problems, which I'm hoping will be easy to answer.
I'm trying to make a row of smarticons in my Frame. I made an ImageButton class and created several instances of it that I added to a Panel that's set up with a FlowLayout. This by itself works great if I just add the Panel to my Frame (i.e. the icons appear one after the other, wrapping to create a second row of icons if the window is too narrow), but then the only thing in my frame is the row of icons. If I add the first Panel to another Panel that's set up with a BorderLayout, the Panel snaps to the top of the frame where I'd like it to be, but the icons cease to wrap, and if the window is too narrow, the icons that would appear past the right edge of the window just don't show up (i.e. BAD).
It seems like I'm attempting something quite common so I'm hoping this is a fairly well-known problem that someone on here could answer in their sleep.
Thanks in advance! [sig][/sig]
I'm trying to make a row of smarticons in my Frame. I made an ImageButton class and created several instances of it that I added to a Panel that's set up with a FlowLayout. This by itself works great if I just add the Panel to my Frame (i.e. the icons appear one after the other, wrapping to create a second row of icons if the window is too narrow), but then the only thing in my frame is the row of icons. If I add the first Panel to another Panel that's set up with a BorderLayout, the Panel snaps to the top of the frame where I'd like it to be, but the icons cease to wrap, and if the window is too narrow, the icons that would appear past the right edge of the window just don't show up (i.e. BAD).
It seems like I'm attempting something quite common so I'm hoping this is a fairly well-known problem that someone on here could answer in their sleep.
Thanks in advance! [sig][/sig]