use of org.apache.pivot.wtk.effects.TagDecorator in project pivot by apache.
the class TagDecoratorTest method startup.
@Override
public void startup(final Display display, final Map<String, String> properties) throws Exception {
frame = new Frame();
frame.setTitle("Tag Decorator Test");
frame.setPreferredSize(480, 360);
Image tag = Image.load(getClass().getResource("go-home.png"));
frame.getDecorators().add(new TagDecorator(tag, HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 10, -10));
frame.open(display);
}
Aggregations