public void startup(Display display, Dictionary<String, String> properties) throws Exception {
FlowPane flowPane = new FlowPane();
flowPane.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
flowPane.getStyles().put("spacing", 8);
flowPane.getComponentMouseListeners().add(new ComponentMouseListener() {
public boolean mouseMove(Component component, int x, int y) {
System.out.println("FLOW PANE " + x + ", " + y);
return false;
}
public void mouseOver(Component component) {
}
public void mouseOut(Component component) {
}
});
Image image = Image.load(getClass().getResource("go-home.png"));
LinkButton linkButton = null;
linkButton = new LinkButton("ABCDE");
flowPane.add(linkButton);
linkButton.getComponentMouseListeners().add(new ComponentMouseListener() {
public boolean mouseMove(Component component, int x, int y) {
return true;
}
public void mouseOver(Component component) {