public void actionPerformed(ActionEvent event) {
        setVisible(true);  // show something

        Object source = event.getSource();
        if (source == selectFile) {

            //Enable previewer.
            chooser.setAccessory(this.previewer);
            chooser.addPropertyChangeListener(previewer);

            chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);

            int returnVal = chooser.showOpenDialog(JSealDesktop.this);
            if (returnVal == JFileChooser.APPROVE_OPTION) {
                File inputFile = chooser.getSelectedFile();

                path = inputFile.getAbsolutePath();
                location.setText(path);

                //Check if selected file is png.
                if (path.endsWith(".png")) {
                    this.fileSelect = true;
                    try {
                        this.imageFrame.setIcon(new ImageIcon(ImageIO.read(new File(path))));
                    } catch (Exception e) {};
                }
                else {
                    JOptionPane.showMessageDialog(null, "File selected is not a .png image",
                            "Error",
                            JOptionPane.ERROR_MESSAGE);
                }
            }
        }

        if (source == start) {
            setVisible(true);  // show something

            int action = selector.getSelectedIndex();
            System.out.print(action);

            switch(action) {
                case 1:
                    //JSeal.encode(this.path);
                    break;
                case 2:
                    //JSeal.decode(this.path);
                    break;
                default: JOptionPane.showMessageDialog(null, "Please select an action from the dropdown menu.",
                        "Error",
                        JOptionPane.ERROR_MESSAGE);
                    break;
            }

            this.fileSelect = false;
        }

        if (source == selector) {

        }

        //Enable options.
        this.enableSelector();
    }