diff --git a/plugins/TestingList.form b/plugins/TestingList.form index 7177ffa..399ce90 100644 --- a/plugins/TestingList.form +++ b/plugins/TestingList.form @@ -299,6 +299,9 @@ + + + diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 371bab2..4a8df32 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -67,6 +67,9 @@ import org.apache.commons.io.FilenameUtils; import org.python.core.PyList; import static org.python.bouncycastle.util.Arrays.append; import java.util.Collections; +import java.awt.Desktop; +import java.net.URI; +import java.net.URISyntaxException; // /** @@ -937,6 +940,12 @@ public class TestingList extends Panel { } }); jPanelButtons.add(jButtonSave); + + jButtonLog.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButtonLogActionPerformed(evt); + } + }); jPanelButtons.add(jButtonLog); jButtonOpen.setToolTipText("Open a list of tests"); @@ -1433,6 +1442,16 @@ public class TestingList extends Panel { this.jTable1.clearSelection(); }//GEN-LAST:event_jMenuItemDeselectActionPerformed + private void jButtonLogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonLogActionPerformed + if (Desktop.isDesktopSupported()) { + try { + Desktop.getDesktop().browse(new URI("http://www.example.com")); + } catch (URISyntaxException | IOException ex) { + Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex); + } + } + }//GEN-LAST:event_jButtonLogActionPerformed + // // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonLog;