A good layout manager proves essential for creating a good graphical user interface (GUI), but many beginner developers find the standard Java layout managers difficult to master. Of these, BorderLayout
and FlowLayout
generally prove useful, but developers often start running into difficulties when coding more complex layouts. GridBagLayout
, in particular, is very powerful, but many developers find it difficult and nonintuitive. Personally, I follow the “least surprise” principle when I look at layout managers: If you are surprised at a layout manager’s behavior, it probably was designed poorly. On this basis, GridBagLayout
gets particularly poor marks. With that in mind, a better way to get similar results must exist.
Find A Teacher Form:
https://docs.google.com/forms/d/1vREBnX5n262umf4wU5U2pyTwvk9O-JrAgblA-wH9GFQ/viewform?edit_requested=true#responses
Email:
public1989two@gmail.com
www.itsec.hk
www.itsec.vip
www.itseceu.uk
Leave a Reply