|
|
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.
|
|

06-19-2008, 11:36 AM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
Sir i use this out side the run().
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
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..
|
|

06-19-2008, 11:49 AM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
Originally Posted by Eranga
Did you add the processing code inside that method? Is it ok now?
there is a some problem sir...Plz help me..
|
|

06-19-2008, 12:04 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
|
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.
|
|

06-19-2008, 12:10 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
Originally Posted by 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.
sir in the both condition Check box value show only 0. I think
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.
|
|

06-19-2008, 12:25 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
|
help me sir
|
|

06-19-2008, 12:25 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
|
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.
|
|

06-19-2008, 01:04 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
Originally Posted by 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.
ok sir can you give me some code..
|
|

06-19-2008, 02:05 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
|
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.
|
|

06-19-2008, 02:14 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
Originally Posted by 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.
Right now i am sava the sate values of final variabel.
|
|

06-19-2008, 02:16 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
|
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.
|
|

06-19-2008, 02:29 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
|
yes i read the value of status
|
|

06-19-2008, 02:31 PM
|
 |
Moderator
|
|
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 4,376
|
|
|
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.
|
|

06-19-2008, 02:38 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
yes,it is alway save 0...
can you use it for further process in different locations
Sorry sir but what it mean?
|
|

06-19-2008, 03:03 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
|
Sir give me tips..
|
|

06-19-2008, 04:20 PM
|
|
Senior Member
|
|
Join Date: Mar 2008
Posts: 447
|
|
Originally Posted by 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.
Sir i do it..it is working sir..
Just i read from file and check the value of status..
Thxs for help me again..
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|