public class Ticket2283 extends Application {
+ @Override
public void init() {
Window w = new Window(getClass().getSimpleName());
setMainWindow(w);
gl.addComponent(new Label(
"Label 1 abc abc abcasdfas dfasd fasdf asdf sadf asdf"));
gl.addComponent(new Label("Label 2 abc abc abc "));
- gl.addComponent(new Label("Colspan2, align right"), 0, 1, 1, 1);
- gl.setComponentAlignment(gl, AlignmentHandler.ALIGNMENT_RIGHT,
+ Label l = new Label("Colspan2, align right");
+ gl.addComponent(l, 0, 1, 1, 1);
+ gl.setComponentAlignment(l, AlignmentHandler.ALIGNMENT_RIGHT,
AlignmentHandler.ALIGNMENT_TOP);
w.setLayout(gl);