Add an ActionListener to the JButton (see How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)), then grab the html source using something...