Using JList with a model?
问题 I'm making an application that lets you add files and then compress them but how to get the files from my hard drive or any hard drive for that matter into my application? I can get the file through a filereader but how to put it into my GUI? I read that defaultListModel is the way to go but am unsure. public class LockNCompressWindow { public static void main(String[] args) { LockFrame w = new LockFrame(); w.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); w.setSize(500,500); w.setResizable