// buttons = (text, runnable | JButton)... // use e.g. maxToShow := 2 to hide all but 2 buttons in a pop-down menu static JPanel jLabelWithButtons(S text, O... buttons, O... _) { optPar int maxToShow = 1000; ret centerAndEastWithMargins(jLabel(text), jcenteredbuttons_withPopDown(maxToShow, buttons)); }