diff --git a/plugins/gui.form b/plugins/gui.form
index ff9cfab..271e20c 100644
--- a/plugins/gui.form
+++ b/plugins/gui.form
@@ -16,13 +16,52 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/plugins/gui.java b/plugins/gui.java
index 288904d..ae1838a 100644
--- a/plugins/gui.java
+++ b/plugins/gui.java
@@ -4,6 +4,8 @@
import ch.psi.pshell.ui.Panel;
import ch.psi.utils.State;
+import java.util.logging.Level;
+import java.util.logging.Logger;
/**
*
@@ -39,18 +41,59 @@ public class gui extends Panel {
// //GEN-BEGIN:initComponents
private void initComponents() {
+ jButton1 = new javax.swing.JButton();
+ renderer1 = new ch.psi.pshell.imaging.Renderer();
+ linePlotJFree1 = new ch.psi.pshell.plot.LinePlotJFree();
+
+ jButton1.setText("Abort");
+ jButton1.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ jButton1ActionPerformed(evt);
+ }
+ });
+
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 449, Short.MAX_VALUE)
+ .addGroup(layout.createSequentialGroup()
+ .addGap(111, 111, 111)
+ .addComponent(jButton1)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 195, Short.MAX_VALUE)
+ .addComponent(renderer1, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(82, 82, 82))
+ .addGroup(layout.createSequentialGroup()
+ .addGap(51, 51, 51)
+ .addComponent(linePlotJFree1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGap(0, 137, Short.MAX_VALUE)
+ .addGroup(layout.createSequentialGroup()
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGap(97, 97, 97)
+ .addComponent(jButton1))
+ .addGroup(layout.createSequentialGroup()
+ .addGap(53, 53, 53)
+ .addComponent(renderer1, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
+ .addComponent(linePlotJFree1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap())
);
}// //GEN-END:initComponents
+ private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
+ try {
+ abort();
+ } catch (InterruptedException ex) {
+ Logger.getLogger(gui.class.getName()).log(Level.SEVERE, null, ex);
+ }
+ }//GEN-LAST:event_jButton1ActionPerformed
+
// Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JButton jButton1;
+ private ch.psi.pshell.plot.LinePlotJFree linePlotJFree1;
+ private ch.psi.pshell.imaging.Renderer renderer1;
// End of variables declaration//GEN-END:variables
}