Page 20 of 20 FirstFirst ... 10181920
Results 381 to 395 of 395
  1. #381
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Sir i use this out side the run().
    Java Code:
    private void blockSites()
      {
    	  SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
          int xy=px1.check();
          px1.dispose();
    	 
          tr=xy;
          
    	
      }
    i take globel variabel tr and tr=xy;

    then i use in run() method

    Java Code:
    
     if(tr==0)
            {
            	for(int j=0;j<ArTemp.size();j++) 
            	{
            		nu=ArTemp.get(j);
                  
            			if(sto.equals(nu))
            			{  
            				mainFrame.updateLog( ""  + clientName + "--->" +p.getHostAddress()+ "-" + Method+ " " + request.url+":" +port +"");
        	   
            				return;
            			}
            	}
           }
    but both case 0 and 1.Site is not open which is store in file..

  2. #382
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    Did you add the processing code inside that method? Is it ok now?
    there is a some problem sir...Plz help me..

  3. #383
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I think you have to do it in other way. First check the check box condition. If the status is 1, call the run() method and. Hope it's clear.

  4. #384
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    I think you have to do it in other way. First check the check box condition. If the status is 1, call the run() method and. Hope it's clear.
    sir in the both condition Check box value show only 0. I think
    Java Code:
    private void blockSites()
      {
    	  SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
          int xy=px1.check();
          px1.dispose();
      
      }
    Here xy value is always showing 0.If checkbox values 0 then xy show 0 and if xy values 1 then also show xy=0. Main thing is that xy value always show 0.

  5. #385
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    help me sir

  6. #386
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    That means when you set the status of the check box and exit from is the status is set to default. You have to save the condition all the time, before exit from it.

  7. #387
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    That means when you set the status of the check box and exit from is the status is set to default. You have to save the condition all the time, before exit from it.
    ok sir can you give me some code..

  8. #388
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Just after click ok button on that site block GUI, save the state of it on a (final) variable and use it. I can't give an exact code for this without really knowing what you have done.

  9. #389
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    Just after click ok button on that site block GUI, save the state of it on a (final) variable and use it. I can't give an exact code for this without really knowing what you have done.
    Right now i am sava the sate values of final variabel.

  10. #390
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  11. #391
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    yes i read the value of status

  12. #392
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Ok, can you use it for further process in different locations. In such a case what happened to the value, is it always set to zero, even you check the check box.

  13. #393
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    yes,it is alway save 0...
    Java Code:
    can you use it for further process in different locations
    Sorry sir but what it mean?

  14. #394
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Sir give me tips..

  15. #395
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    Ok, can you use it for further process in different locations. In such a case what happened to the value, is it always set to zero, even you check the check box.
    Sir i do it..it is working sir..

    Just i read from file and check the value of status..

    Thxs for help me again..

Page 20 of 20 FirstFirst ... 10181920

Similar Threads

  1. Must Read.....
    By sanjeevtarar in forum Forum Lobby
    Replies: 10
    Last Post: 03-03-2010, 07:16 PM
  2. how to read a form with JFS
    By crispy in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 05-01-2008, 03:07 PM
  3. Read file
    By tajinvillage in forum Threads and Synchronization
    Replies: 0
    Last Post: 01-29-2008, 09:10 AM
  4. How to read the following
    By rrp in forum New To Java
    Replies: 0
    Last Post: 12-03-2007, 06:16 PM
  5. read txt file
    By sureshsri1981 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-05-2007, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •