0 Replies Latest reply: Mar 23, 2010 10:10 PM by 807581 RSS

    Getting rid of the rectangular box after deleting and adding items in Form

    807581
      Hi.
      My program has a form with 2 StringItems and an ImageItem. The items on the form will be changed periodically
      using a TimerTask, i.e class MyProgram (referring to below). The form's updated periodically but there's a rectangular box which
      keeps appearing wrapping either of the StringItems or ImageItem.

      How can i get rid of this box using my code?

      Thanks a lot!
      class MyProgram extends TimerTask {
              .
                .
                .
                public RotateAds(...) {
              .
                .
                .
              }
      
      
              public void run() {
      
                 titleIndex++;
                 index++;
                 
                   myForm.delete(0);
                 text = new StringItem("HELLO WORLD", String.valueOf(titleIndex));
                 myForm.insert(0, text);
                 
      
                  try {
      
      
                      imageItem = new ImageItem(linkURL,
                                      image,
                                              ImageItem.LAYOUT_DEFAULT,
                                              "My Image");
                          myForm.delete(1);
                      myForm.insert(1, imageItem);
                      
                          progress = new StringItem(exposureSending, "");
                          myForm.delete(2);
                      myForm.insert(2, progress);
      
                  } catch (IOException ex) {ex.printStackTrace();}
              }
          }
      Edited by: playplay1978 on Mar 24, 2010 3:10 AM