public AddFile(java.awt.Frame parent, FileEntry curr, String currVersion, List<String> versions, String currCategory) {
        super(parent);
        initComponents();
        if(curr!=null) {
            setTitle("Edit Entry");
            jButton2.setText("OK");
            item = curr;
            jTextField1.setText(item.file.getPath());
            jTextField2.setText(item.dest);
            for(int i=0; i<jComboBox1.getItemCount(); i++) {
                String cat = ((String) jComboBox1.getItemAt(i)).toLowerCase().replaceAll(" ", "_");
                if(cat.equals(curr.category)) {
                    jComboBox1.setSelectedIndex(i);
                    break;
                }
            }
        } else {
            for(int i=0; i<jComboBox1.getItemCount(); i++) {
                String cat = ((String) jComboBox1.getItemAt(i)).toLowerCase().replaceAll(" ", "_");
                if(cat.equals(currCategory)) {
                    jComboBox1.setSelectedIndex(i);
                    break;
                }
            }
            item = new FileEntry();
        }
        version = currVersion;
        for(int i=0; i<versions.size(); i++) {
            jComboBox2.addItem("webOS " + versions.get(i));
        }
        jComboBox2.setSelectedItem("webOS " + version);
        getContentPane().requestFocus();
    }