1) add an action listener to the JButton
2) in the ActionListener implementation
a) Create a process using ProcessBuilder or Runtime.exec or and get the results
b) Read in the jar contents...