Skip to main content

Why use the GridBaglayout and Table2GridBag?

Java's GridBaglayout is shunned by a lot of developers, as it is difficult to configure. Even producing relatively simply layouts can easily result in several hours of trial and error. This fact has led to a number of alternative Layoutmanagers being developed, which are supposedly easier to use. Nevertheless, there are good reasons for choosing GridBaglayout (and Table2Gridbag anyway):

  • The code produced by Table2Gridbag only depends on the JRE. There is no need to bundle additional libraries into the GUI application. Hence, no license issues and slimmer code with less potential for bugs.

  • When planning a commercial application, the person talking to the customer and doing the requirements analysis may be a different person from the software developer, who does the actual implementation. With Table2GridBag, it becomes easy to specify and pass on the logical layout of GUI dialogs without actually having to write code.

  • Table2GridBag offers a fast way for checking the layout by simply looking at it in a webbrowser.

  • Creating the GUI layout from an HTML document provides for a convenient way of documenting one's work.