static JLabel showSuggestion_current; // runs action in new thread svoid showSuggestion(fS suggestionText, fO action) { final int fontSize = 20, buttonFontSize = 15; final JLabel label = fontSize(fontSize, jCenteredMultiLineLabel(suggestionText)); swing { showPackedFrameInBottomRightCorner(showSuggestion_current = withLineBorder(Color.black, withMargin( centerAndSouth( label, withTopMargin(makeFirstButtonBold(fontSizeAll(buttonFontSize, jcenteredbuttons( "OK", r { hideSuggestion(label); callFInNewThread(action); }, "No", r { hideSuggestion(label) })))))))); } }