public void complementPath(Thinlet thinlet, Object textfield,  String text, int caret) {
		if (text.length() == caret) {
			int index = text.lastIndexOf(File.separatorChar);
			if (index == -1) { return; }
			String foldername = text.substring(0, index + 1);
			File folder = new File(foldername);
			String namestart = text.substring(index + 1);
			String[] list = folder.list();
			if (list == null) { return; } // e.g. no floppy
			for (int i = 0; i < list.length; i++) {
				if (list[i].startsWith(namestart)) {
					String path = foldername + list[i];
					if (new File(folder, list[i]).isDirectory()) { path += File.separatorChar; }
					thinlet.setString(textfield, "text", path);
					thinlet.setInteger(textfield, "end", path.length());
					break;
				}
			}
		}
	}