خرید بک لینک

Vote count: 0

I have the following code. I want to Make jLabel Visible and Invisible 4 times with 0.5Seconds delay for every loop. The code below is not working as expected.

String a = (String)jTextField1.getText();

  if(a.equals("")){

  for (int i = 0;i<=3;i++){
      try {
         jLabel1.setVisible(true);
          Thread.sleep(500);


          for(int j=0;j<i;j++){
          jLabel1.setVisible(false);
           Thread.sleep(500);
          }

      } catch (InterruptedException ex) {

      }
  }
  }

asked 1 min ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: جمعه 7 اسفند 1394 ساعت: 11:24

صفحه بندی