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