Warning: session_start(): open(/var/lib/php/sessions/sess_bprb08vm4vuriino6jbqqr2j27, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass BetterLabel extends JLabel {
bool autoToolTip = true;
*() {
// Listeners given out to componentPopupMenu must not directly
// reference the outer object (-> weak map problem).
final WeakReference me = new(this);
componentPopupMenu(this, BetterLabel_menuItems(me));
}
*(S text) {
this();
this.setText(text);
}
public void setText(S text) {
super.setText(text);
if (autoToolTip)
if (!swic(text, "")) // HTML labels make super-huge, confusing tool tips
setToolTipText(nullIfEmpty(text));
}
}
// moved outside of class for GC reasons (see above)
static VF1 BetterLabel_menuItems(final WeakReference me) {
ret voidfunc(JPopupMenu menu) {
addMenuItem(menu, "Copy text to clipboard", r {
copyTextToClipboard(me->getText());
});
};
}