srecord noeq G22RunSingleAnalyzerPanel(BufferedImage image, G22Recognizer analyzer) is Swingable { transient Q q = startQ(); // starting queues is free now visual { if (analyzer == null) ret jcenteredlabel("Nothing here"); if (image == null) ret jcenteredlabel("Not seeing anything"); var compiled = analyzer.compileForAutoRun(); if (compiled == null) ret jcenteredlabel(analyzer + " is not cleared for auto-run"); if (compiled.compileError != null) ret jErrorView(compiled.compileError); q.add(-> { try { var result = compiled.get(image); ret jcenteredlabel(shorten(g22utils.stringify(result!)))); } catch e { ret jErrorView(e); } } ret jcenteredlabel("Running analyzer: " + analyzer + " on image of size " + widthAndHeight(image)); } }