I'm trying to use a TextButton with a ColorMenu as a color chooser.
TextButton button = new TextButton("SelectColor");
ColorMenu cm = new ColorMenu();
button.setMenu(cm);
add(new FieldLabel(button, "Color"));`
When I click on the button, the colormenu is correctly displayed. However, if I select a color, the menu doesn't close.
How can I achieve that?