Warning: session_start(): open(/var/lib/php/sessions/sess_kjqkrbc05tsbnljps2manp933g, 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 JFileDropTarget is Swingable {
settable S msg = "Drop file here";
// currently dropped file
settable File file;
SingleComponentPanel scp = scp();
cachedVisualize {
if (!scp.hasComponent())
scp.setComponent(makeComponent());
}
JComponent makeComponent() {
ret file == null
? noFileComponent()
: componentForFile(msg);
}
JComponent noFileComponent() {
ret jcenteredlabel(msg);
}
swappable JComponent componentForFile(File file) {
ret jfullcenter(jFilePathLabel(file));
}
}