Changeset 92 in tmcsimulator-scriptbuilder for trunk/src/event/editor/CADLogPanel.java
- Timestamp:
- 08/28/2017 04:12:45 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/event/editor/CADLogPanel.java (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/CADLogPanel.java
r89 r92 10 10 * @author nathaniellehrer 11 11 */ 12 public class CADLogPanel extends javax.swing.JPanel implements RemoveablePanel,ScriptEventEditorPanel12 public class CADLogPanel extends javax.swing.JPanel implements I_ScriptEventEditorPanel 13 13 { 14 14 … … 23 23 initComponents(); 24 24 } 25 26 public void setRemoveListener(ActionListener listener)27 {28 removeListener = listener;29 }30 31 25 /** 32 26 * Load the script event associated with this editor panel. … … 60 54 } 61 55 56 @Override 62 57 public void update(Observable o, Object arg) 63 58 { … … 83 78 { 84 79 85 removeButton = new javax.swing.JButton();86 80 jLabel1 = new javax.swing.JLabel(); 87 81 jScrollPane1 = new javax.swing.JScrollPane(); 88 82 CadTextField = new javax.swing.JTextArea(); 89 90 removeButton.setText("Remove");91 removeButton.addMouseListener(new java.awt.event.MouseAdapter()92 {93 public void mouseClicked(java.awt.event.MouseEvent evt)94 {95 removeButtonremoveThisProperty(evt);96 }97 });98 83 99 84 jLabel1.setText("Cad Log Text"); … … 113 98 .add(layout.createSequentialGroup() 114 99 .add(jLabel1) 115 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 330, Short.MAX_VALUE) 116 .add(removeButton))) 100 .add(0, 0, Short.MAX_VALUE))) 117 101 .addContainerGap()) 118 102 ); … … 120 104 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 121 105 .add(layout.createSequentialGroup() 122 .addContainerGap() 123 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) 124 .add(removeButton) 125 .add(jLabel1)) 106 .add(19, 19, 19) 107 .add(jLabel1) 126 108 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 127 109 .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE) … … 130 112 }// </editor-fold>//GEN-END:initComponents 131 113 132 private void removeButtonremoveThisProperty(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_removeButtonremoveThisProperty133 if (removeListener != null)134 {135 removeListener.actionPerformed(new ActionEvent(this, 0, ""));136 }137 }//GEN-LAST:event_removeButtonremoveThisProperty138 139 114 140 115 // Variables declaration - do not modify//GEN-BEGIN:variables … … 142 117 private javax.swing.JLabel jLabel1; 143 118 private javax.swing.JScrollPane jScrollPane1; 144 private javax.swing.JButton removeButton;145 119 // End of variables declaration//GEN-END:variables 146 120
Note: See TracChangeset
for help on using the changeset viewer.
