I have a JIconPopupPanel and a JCommandButtonPanel with JCommandButton objects
I noticed that depending upon what parameters I give the JIconPopupPanel
constructor I get 2 different behaviours, both fo which are flawed.
Behaviour 1: It all works as expected however the actual area of the
iconpopuppanel extends past what it contains resulting in a huge area of empty
space underneath the last button group.
I can fix behaviour 1 by changing my constructor to:
icons = new JIconPopupPanel(panel, 0, 0);
Which fixes behaviour 1 and all appears to work fine until the window is
resized. Rather than reduce the number of columns or show a horizontal scroll
bar the icon popup panel resizes and you can see that the contents have not
resized. Half truncated icons are show where the button extends beyond the edge
of the icon popup panel and beyond which lie the rest of the columns.