How can I open a file/folder when I click a button - Java Windowbuilder : I'm developing a Screen Share tool for my Minecraft server and I want for you to be able to click a button and it will open an application like \program.exe and another button open a directory like %appdata%\.minecraft

Here is my code that you could edit as an example:
    `import java.awt.EventQueue;

    import javax.swing.JFrame;
    import javax.swing.JProgressBar;
    import javax.swing.JButton;

    public class Minenow {

	    private JFrame frmMinenow;

	    /**
	     * Launch the application.
	     */
	    public static void NewScreen() {
		    EventQueue.invokeLater(new Runnable() {
			    public void run() {
				    try {
					    Minenow window = new Minenow();
					    window.frmMinenow.setVisible(true);
				    } catch (Exception e) {
					    e.printStackTrace();
				    }
			    }
		    });
	    }

	    /**
	     * Create the application.
	     */
	     public Minenow() {
		    initialize();
	    }

	    /**
	     * Initialize the contents of the frame.
	     */
	    private void initialize() {
		    frmMinenow = new JFrame();
		    frmMinenow.setTitle("Minenow");
		    frmMinenow.setBounds(100, 100, 793, 503);
		    frmMinenow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		    frmMinenow.getContentPane().setLayout(null);
		
		    JButton btnNewButton = new JButton(".minecraft");
		    btnNewButton.setBounds(58, 50, 161, 80);
		    frmMinenow.getContentPane().add(btnNewButton);
	    }
    `} 