Page 19 of 20 FirstFirst ... 917181920 LastLast
Results 361 to 380 of 395
  1. #361
    Mir
    Mir is offline Senior Member
    Join Date
    Mar 2008
    Posts
    447
    Rep Power
    7

    Default

    Quote Originally Posted by Eranga View Post
    I'm not clear what you say here. What menu frame appear on the mainFrame?
    when i run the code then my mainFrame is show all url right.But now menu frame i mean checkbox is appear on this mainfarme when url open.Each and every time menu frame appear and disappear.

  2. #362
    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

    That's somewhere on your code, object reference is called to that check box GUI, each time. Debug and see.

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

    Default

    yes i know that becouse i use object reference in Run Method.

    Java Code:
     public  void run(){
    
     SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
            int xy=px1.check();
    
    }
    And i have no idia to how i solve this..

    Plz help me

  4. #364
    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

    Rather than working on the run() try to get the value out of that and use it inside the run() method. Do you know what run method do?

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

    Default

    when i use
    Java Code:
    SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
            int xy=px1.check();
            px1.dispose();
    out side the Run().Then i am geting error.
    Error like this

    Java Code:
    at proxy.Proxy.<init>(Proxy.java:103)
    	at main.MainFrame.<init>(MainFrame.java:55)
    	at main.Server.main(Server.java:54)

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

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

    Default

    i just try here
    Java Code:
    public class Proxy extends Thread {
    
    SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
            int xy=px1.check();
            px1.dispose();
    
    
    }

  8. #368
    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

    It's much much better to stop your project at this point and learn Java basis. You can't do this.

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

    Default hi

    Quote Originally Posted by Eranga View Post
    It's much much better to stop your project at this point and learn Java basis. You can't do this.

    Ok i agree with you but help me last time ..


    Plz...

  10. #370
    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

    Try it inside the constructor, if not implement another method and use it in appropriate place of the class.

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

    Default

    sir can you give me example of this..

    plz give me

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

    Default

    hi

    can you give me some example tips..

    plz help me..

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

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

    Default

    Quote Originally Posted by Eranga View Post
    What you asking is a example of how to write a method in Java?
    Hello Sir

    If i am abel to do that then why i requesting again and again..so plz help me. I was asking example becouse i know you know my problem and code both..So plz help me

  15. #375
    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

    You look gambling on me. Be careful, you can be a member of me "not to replay" and I don't like to be that so. You have shameless behavior on this thread.

    I advised you several times. You copied someones project and edited for you purpose. It's a big project, but you don't know basis in Java. See here, you don't know how to write a method. So what should I do? I don't want to write someones code.

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

    Default

    Quote Originally Posted by Eranga View Post
    You look gambling on me. Be careful, you can be a member of me "not to replay" and I don't like to be that so. You have shameless behavior on this thread.

    I advised you several times. You copied someones project and edited for you purpose. It's a big project, but you don't know basis in Java. See here, you don't know how to write a method. So what should I do? I don't want to write someones code.
    i know i don't know much more about java

    Plz .Last time help me PLZ

  17. #377
    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

    Here a method declaration in Java. Implement this in a the same class you are talking about.

    Java Code:
    private void blockSites(){
    // Add the code you write.
    }

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

    Default

    thax's sir it is working

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

  20. #380
    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?
    I add
    Java Code:
    private void blockSites()
      {
         SiteBlockingDlg px1= new SiteBlockingDlg(mainFrame);
          int xy=px1.check();
          px1.dispose();
    	  
    	
      }
    But in the bothh case 0 and 1.Site not open which is present in file.

Page 19 of 20 FirstFirst ... 917181920 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
  •