How to create a JTree with JCheckbox to Show Systems All drives and its Folders/Files
问题 I am beginner in java. I am creating a file chooser that can select multiple drives, folders or files at a time for worm scanning purpose. I have written the code to work fine for a single drive (e.g. c:\ or e:\ etc). I am trying to create a tree for all drives in system. Please tell me how to accomplish this. Code import javax.swing.*; import javax.swing.event.*; import javax.swing.tree.*; import java.io.File; import java.util.Collections; import java.util.Vector; public class FileTreeDemo {