Community
Participate
Working Groups
Select a JPanel in GridBagLayout Open the Alignment dialog Switch to null - the Show Distribute Box button is enabled This can be used to make the box appear - now select two or more components and the box is drawn around them. It can be moved and resized OK, but because the panel is in GridBagLayout it makes no sense. The Button should maybe be only available in null layout
Jeff has redesign this whole dialog to work with layouts and components based on selection. I could not reproduce this problem on the latest VE code base (I20040603a).
The show box still appears. To see this create MyJFrame extending JFrame and make its content pane null. Add a couple of JComponents and set show distribute box to be on using the alignment dialog. When you select both components the box is drawn around them (which is correct). Then select the content pane (the distribute box disappears which is correct because there are no selected components to distribute) and switch it to GridBagLayout. Now re- select both of the components and the box re-appears. It shouldn't be there are the container is no longer in null layout. By appearing in GridBadLayout it can be moved and drawn but it serves no function as none of the distribute horizontally/vertically within box controls can be used, but it should only appear it the parent container is in null layout and it was selected from the distribute dialog
FYI: I verified that this still occurs with VE 1.1