});
controlsColumn.addButton("TextPosition = Top", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextPosition(new Alignment(Alignment.DEFAULT, Alignment.TOP));
}
});
}
});
controlsColumn.addButton("TextPosition = Bottom", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextPosition(new Alignment(Alignment.DEFAULT, Alignment.BOTTOM));
}
});
}
});
controlsColumn.addButton("TextPosition = Left", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextPosition(new Alignment(Alignment.LEFT, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextPosition = Right", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextPosition(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextPosition = Leading", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextPosition(new Alignment(Alignment.LEADING, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextPosition = Trailing", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextPosition(new Alignment(Alignment.TRAILING, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextAlignment = Default", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(null);
}
});
}
});
controlsColumn.addButton("TextAlignment = Top", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.DEFAULT, Alignment.TOP));
}
});
}
});
controlsColumn.addButton("TextAlignment = Center(V)", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.DEFAULT, Alignment.CENTER));
}
});
}
});
controlsColumn.addButton("TextAlignment = Bottom", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.DEFAULT, Alignment.BOTTOM));
}
});
}
});
controlsColumn.addButton("TextAlignment = Left", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.LEFT, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextAlignment = Center (H)", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.CENTER, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextAlignment = Right", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.RIGHT, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextAlignment = Leading", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.LEADING, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("TextAlignment = Trailing", new ActionListener() {
public void actionPerformed(ActionEvent e) {
apply(new Applicator() {
public void apply(Label label) {
label.setTextAlignment(new Alignment(Alignment.TRAILING, Alignment.DEFAULT));
}
});
}
});
controlsColumn.addButton("IconTextMargin = default", new ActionListener() {