Page 18 of 20 FirstFirst ... 81617181920 LastLast
Results 341 to 360 of 395
  1. #341
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

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

    Default

    Quote Originally Posted by Eranga View Post
    Ok, is it works now. Can you see that newly created GUI when you click the menu item.
    yes i can see..

    Next step...

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

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

    Default

    Quote Originally Posted by Eranga View Post
    Next step...???

    You should know it. What you have trying to do on that GUI?
    i do that.Sir i am geting each every thing what i want but problem is thread.I just pass value of SiteBlockingDlg in Proxy.java.It is working but when site is open or block then menuDialog is fluctuate(appear and disappear) on mainFrame.So plz tell me how to remove this problem

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

    Default

    First of all, explain me the functionality of the SiteBlockingDlg class. I only can see the GUI implementation.

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

    Default

    Quote Originally Posted by Eranga View Post
    First of all, explain me the functionality of the SiteBlockingDlg class. I only can see the GUI implementation.
    i have taken two variabel
    Java Code:
     private int check;
      static int G_ch;
    then i Ste state for check box. After that check for Check box ,it ia active or not..
    Java Code:
    if(evt.target == ACTIVE) 
                {
    	        	
    	        	if(ACTIVE.getState())
    	        	
    	        		check=1;
    	        	
    	        	else
    	        	  	check=0;
    		        
                }
    	        
    	        G_ch=check;
    	        if(check==1)
            	{
    	        	JOptionPane.showMessageDialog(null,check);
            		JOptionPane.showMessageDialog(null,"HELLO");
            	}
            	else
            	{
            		JOptionPane.showMessageDialog(null,check);
            		JOptionPane.showMessageDialog(null,"Bye");
            	}
    	       if(check==1)
    	       {
    	    	   ACTIVE.setState(true);
    	    	  
    	    	   
    	       }
    this is a functionality of SiteBlocking class

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

    Default

    Quote Originally Posted by Eranga View Post
    First of all, explain me the functionality of the SiteBlockingDlg class. I only can see the GUI implementation.
    Then i use these values in proxy class

    Java Code:
     SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
            int xy=px1.check();
            px1.dispose();
       
           
          
          
            if(xy==1)
            {
            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;
            	
            }
           }
           
            }
            
           
            mainFrame.updateLog( ""  + clientName + "--->" +p.getHostAddress()+ "-" + Method+ " " + request.url+":" +port +"");
    plz help me

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

    Default

    Sir if you need more code then tell me

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

    Default

    Quote Originally Posted by Eranga View Post
    First of all, explain me the functionality of the SiteBlockingDlg class. I only can see the GUI implementation.
    Sir i am waiting for your responce..

    Plz help me

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

    Default

    can you help me

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

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

    Default

    Quote Originally Posted by Eranga View Post
    Oki, tell me what's going on at the time of your project.
    Thxs's god you reply me..

    Same problem...Still going and i told you i need your help..Menu item

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

    Default

    Can you see the menu item Block on the main menu?

    If so, when you click on it, can you see the frame with a check box and a button?

    If you tick the check box, can you see two message boxes, one after the other?

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

    Default

    Quote Originally Posted by Eranga View Post
    Can you see the menu item Block on the main menu?

    If so, when you click on it, can you see the frame with a check box and a button?

    If you tick the check box, can you see two message boxes, one after the other?
    yes you are right.Same thing happen in my code...

    But you know what i want to do..

    So plz...

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

    Default

    Still I'm worried is that as I said thousand times may be earlier, what you are going to do with those check boxes and stuff. That's your implementation, not mine. So you should explain well that the way you follows at the time.

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

    Default

    Quote Originally Posted by Eranga View Post
    Still I'm worried is that as I said thousand times may be earlier, what you are going to do with those check boxes and stuff. That's your implementation, not mine. So you should explain well that the way you follows at the time.
    ok
    i explain for checkbox.

    When my code is run first time then url blocking code is active.But when user check the checkbox then url blocking code is disactive.

    It means blocking is depend on check box..

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

    Default

    In the menu item i have taken a variabel
    and check it for 1 and 0.

    Java Code:
    if(evt.target == ACTIVE) 
                {
    	        	
    	        	if(ACTIVE.getState())
    	        	
    	        		check=1;
    	        	
    	        	else
    	        	  	check=0;
    		        
                }
    	        
    	        G_ch=check;
    	        if(check==1)
            	{
    	        	JOptionPane.showMessageDialog(null,check);
            		JOptionPane.showMessageDialog(null,"HELLO");
            	}
            	else
            	{
            		JOptionPane.showMessageDialog(null,check);
            		JOptionPane.showMessageDialog(null,"Bye");
            	}
    	       if(check==0)
    	       {
    	    	   ACTIVE.setState(true);
        	   
    	       }
            			
    		}

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

    Default

    When the check box is true, simple set the connection url to null. Search the project and find where the connection is open and process take place.

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

    Default

    Quote Originally Posted by Eranga View Post
    When the check box is true, simple set the connection url to null. Search the project and find where the connection is open and process take place.
    See what i do here..

    Just i pass the check value from SiteBlocking to proxy through constructor. i use here
    Java Code:
    if(xy==0)
            {
            for(int j=0;j<ArTemp.size();j++) 
           {
               	nu=ArTemp.get(j);
                  
            if(sto.equals(nu))
            {  
            	mainFrame.updateLog( ""  + clientName + "--->" );
        	    
            	return;
            	
            }
           }
           
            }
    it is working but problem is several time menu frame appear on mainFrame.So how can i remove this..

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

    Default

    Quote Originally Posted by Mir View Post
    it is working but problem is several time menu frame appear on mainFrame.So how can i remove this..
    I'm not clear what you say here. What menu frame appear on the mainFrame?

Page 18 of 20 FirstFirst ... 81617181920 LastLast

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
  •