diff --git a/plugins/TestingList.form b/plugins/TestingList.form
index 86293c6..7e42c0b 100644
--- a/plugins/TestingList.form
+++ b/plugins/TestingList.form
@@ -91,6 +91,9 @@
+
+
+
diff --git a/plugins/TestingList.java b/plugins/TestingList.java
index 77263a1..c927b09 100644
--- a/plugins/TestingList.java
+++ b/plugins/TestingList.java
@@ -181,6 +181,13 @@ public class TestingList extends Panel {
return canEdit [columnIndex];
}
});
+ jTable1.addInputMethodListener(new java.awt.event.InputMethodListener() {
+ public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
+ jTable1InputMethodTextChanged(evt);
+ }
+ public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
+ }
+ });
jScrollPane2.setViewportView(jTable1);
if (jTable1.getColumnModel().getColumnCount() > 0) {
jTable1.getColumnModel().getColumn(0).setResizable(false);
@@ -219,10 +226,18 @@ public class TestingList extends Panel {
}//GEN-LAST:event_jButton1ActionPerformed
private void jCheckBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox1ActionPerformed
+ boolean bSelected = jCheckBox1.isSelected();
+ for (int row = 0; row <= jTable1.getRowCount() - 1; row++) {
+ jTable1.setValueAt(bSelected, row, 0);
+ }
+ updateStatus();
+ }//GEN-LAST:event_jCheckBox1ActionPerformed
- //search for device name in table
- boolean bSelected = jCheckBox1.isSelected();
- String sStatus, iconSource;
+ public void updateStatus(){
+ String sStatus, iconSource;
+ boolean bSelected;
+ for (int row = 0; row <= jTable1.getRowCount() - 1; row++) {
+ bSelected = (boolean) jTable1.getValueAt(row, 0);
if(bSelected){
sStatus = "Pending";
iconSource = "/icons/button_pause-16px.png";
@@ -232,12 +247,15 @@ public class TestingList extends Panel {
iconSource = "/icons/button_stop-16px.png";
}
ImageIcon icon = new ImageIcon(getClass().getResource(iconSource));
- for (int row = 0; row <= jTable1.getRowCount() - 1; row++) {
jTable1.setValueAt(bSelected, row, 0);
jTable1.setValueAt(icon, row, 6);
jTable1.setValueAt(sStatus, row, 5);
- }
- }//GEN-LAST:event_jCheckBox1ActionPerformed
+ }
+ }
+ private void jTable1InputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_jTable1InputMethodTextChanged
+ // TODO add your handling code here:
+ updateStatus();
+ }//GEN-LAST:event_jTable1InputMethodTextChanged
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;