srecord noeq JFilePathLabel(File file) { transient JLabel label; transient JButton button; visualize { if (file == null) ret jlabel("-"); label = jlabel(f2s(file)); button = jimageButtonScaledToWidth(16, #1101292, "Show in file explorer", l0 showInExplorer); ret layout(); } JComponent layout() { //ret centerAndEastWithMargin(label, button); ret jline(label, button); } void showInExplorer { thread { startPlatformFileManager(dirOfFile(file)); } } }