//static int showNiceButtons_maxImageHeight = 128; // params = text, image, action, text, image, action, ... static DynamicHStack showNiceButtons(O... params) { DynamicHStack stack = dynamicHStack().spacing(20); for (int i = 0; i < l(params); i += 3) { S text = str(get(params, i)); S imageID = str(get(params, i+1)); O action = get(params, i+2); JButton b = jImageAndTextButton(imageID, text, action); setVerticalTextPosition(JButton.TOP, setFontSize(15, makeBold(b))); setVerticalAlignment(JButton.TOP, b); setMargin(10, b); stack.addComponent(b); } showCenterPackedFrame(withMargin(20, jscroll(jfullcenter(stack)))); ret stack; }