Hello, Matthias,
Is there any tutorial about using DialogLayout (with pictures =) )? It is quite confusing, here is a part from LoginDemo.java
Code:
DialogLayout.Group hLabels = loginPanel.createParallelGroup(lName, lPassword);
DialogLayout.Group hFields = loginPanel.createParallelGroup(efName, efPassword);
DialogLayout.Group hBtn = loginPanel.createSequentialGroup()
.addGap() // right align the button by using a variable gap
.addWidget(btnLogin);
loginPanel.setHorizontalGroup(loginPanel.createParallelGroup()
.addGroup(loginPanel.createSequentialGroup(hLabels, hFields))
.addGroup(hBtn));
loginPanel.setVerticalGroup(loginPanel.createSequentialGroup()
.addGroup(loginPanel.createParallelGroup(lName, efName))
.addGroup(loginPanel.createParallelGroup(lPassword, efPassword))
.addWidget(btnLogin));
Why we add to the same group both labels? Further it is even more confusing.
Thanks in advance.