mkornatzki wrote:how can i set the Layout of a JPanel in SwingDesigner 7.1?
As shown in the docs and the on-line product demos, dropping the layout manager from the palette is the primary way to do it (and has been since the product was first released six years ago). You can also right-click on a container and select the "
Set Layout" command.
mkornatzki wrote:Something that was easy to do in previous versions now is impossible for me.
It is still extremely easy in the latest version.
mkornatzki wrote:Reproduce:
Take a JFrame, put a JPanel on it and then i can't change the Layout. I can see the Entry in the Properties-Editor but i can't change it.
Just like the
Constraints property is used to edit the properties of the current
Constraint object associated with the widget, the
Layout property is used to edit the properties of the current
Layout object associated with the container.
mkornatzki wrote:Now as i write this post i get an idea. On the palette i can select a layout and drop it on the panel. It works but it's not intuitive.
Why is that not intuitive? What did you think the
Layouts palette category was for? Given that this has been the primary way of assigning a layout type to a container in the product since its first release, I am very surprised that you think this is unintuitive.
The ability to change the layout type also from the property pane was only a minor (and redundant) feature to begin with. We can certainly consider adding that feature to v7.x, but the lack of it does not make the product any less intuitive or difficult to use.