title: Opening a URL from a JButton in simple Java Program?
body: <p>Hello there community :),
  So I'm a real java newb, right? I can't seem to get a URL to open from my LINK GUI. At the moment, it just shows the fields value.</p>
  
  <p>Here is my handler.java code:</p>
  
  <pre><code>google = new JButton("Google");
  google.setToolTipText("Open Google");
  add(google);
  </code></pre>
  
  <p>I want it to open a URL instead of showing the fields value. This is my actionlistener code:</p>
  
  <pre><code>    private class HandlerClass implements ActionListener {
  
      public void actionPerformed(ActionEvent event) {
  
          JOptionPane.showMessageDialog(null, String.format("%s", event.getActionCommand()));
  
      }
  
  }
  </code></pre>
  
  <p>If this is possible, can I get some assistance? :) Thanks</p>