Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #381 (permalink)  
Old 06-19-2008, 11:36 AM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
Sir i use this out side the run().
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

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..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #382 (permalink)  
Old 06-19-2008, 11:49 AM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
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..
Bookmark Post in Technorati
Reply With Quote
  #383 (permalink)  
Old 06-19-2008, 12:04 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #384 (permalink)  
Old 06-19-2008, 12:10 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
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
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.
Bookmark Post in Technorati
Reply With Quote
  #385 (permalink)  
Old 06-19-2008, 12:25 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
help me sir
Bookmark Post in Technorati
Reply With Quote
  #386 (permalink)  
Old 06-19-2008, 12:25 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #387 (permalink)  
Old 06-19-2008, 01:04 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
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..
Bookmark Post in Technorati
Reply With Quote
  #388 (permalink)  
Old 06-19-2008, 02:05 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #389 (permalink)  
Old 06-19-2008, 02:14 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #390 (permalink)  
Old 06-19-2008, 02:16 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
ok, did you use that value in run() or anywhere you want? What happened if so?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #391 (permalink)  
Old 06-19-2008, 02:29 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
yes i read the value of status
Bookmark Post in Technorati
Reply With Quote
  #392 (permalink)  
Old 06-19-2008, 02:31 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #393 (permalink)  
Old 06-19-2008, 02:38 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
yes,it is alway save 0...
Code:
can you use it for further process in different locations
Sorry sir but what it mean?
Bookmark Post in Technorati
Reply With Quote
  #394 (permalink)  
Old 06-19-2008, 03:03 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
Sir give me tips..
Bookmark Post in Technorati
Reply With Quote
  #395 (permalink)  
Old 06-19-2008, 04:20 PM
Mir Mir is offline
Senior Member
 
Join Date: Mar 2008
Posts: 447
Mir is on a distinguished road
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..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Must Read..... sanjeevtarar Forum Lobby 8 11-16-2008 11:02 PM
how to read a form with JFS crispy JavaServer Faces 2 05-01-2008 05:07 PM
Read file tajinvillage Threads and Synchronization 0 01-29-2008 11:10 AM
How to read the following rrp New To Java 0 12-03-2007 08:16 PM
read txt file sureshsri1981 JavaServer Pages (JSP) and JSTL 0 08-05-2007 05:49 PM


All times are GMT +3. The time now is 11:09 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org