// interval is in seconds static JLabel lambda0Like jLabelShortCalcedEvery(IF0 calc, double interval) { JLabel label = jSimpleLabel(); if (calc != null) awtEveryAndNow(label, interval, -> { pcall { O o = calc!; S toolTip, text; if (o cast WithToolTip) { toolTip = o.toolTip(); text = str(o!); } else { text = toolTip = str(o); } setToolTip(label, toolTip); label.setText(text); } }); ret label; } static JLabel lambda0Like jLabelShortCalcedEvery(double interval, IF0 calc) { ret jLabelShortCalcedEvery(calc, interval); }