Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: To check presence of padlock icon in the location bar /address bar

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default To check presence of padlock icon in the location bar /address bar

    Hi.. can someone help me with a java code to check is padlock icon is present in the location bar of the browser for a URL
    Thanks
    Rexy


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: To check presence of padlock icon in the location bar /address bar

    Capture the screen with the Robot class and then scan it for the image.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: To check presence of padlock icon in the location bar /address bar

    Quote Originally Posted by Norm View Post
    Capture the screen with the Robot class and then scan it for the image.
    Thanks for the quick reply.
    I would like to know if thats the only way.. am looking to sometips, where we dont treat the padlock as image.
    Any help is appreciated.

    Thanks,
    Rexy

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,067
    Thanks
    47
    Thanked 2,146 Times in 2,119 Posts

    Default Re: To check presence of padlock icon in the location bar /address bar

    That's the only way I can think of. Maybe a plugin could detect it.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Progress Bar
    By h9000458359@gmail.com in forum Java Theory & Questions
    Replies: 4
    Last Post: December 26th, 2012, 12:04 PM
  2. Replies: 2
    Last Post: April 6th, 2012, 01:58 AM
  3. need help copying (what is in address bar)
    By 3ammary in forum Java Networking
    Replies: 0
    Last Post: January 8th, 2011, 08:32 AM
  4. [Swing-Progress Bar] Can't resize progress bar
    By Grabar in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 14th, 2010, 12:27 PM
  5. Progress bar while uploading a file in web application
    By jazz2k8 in forum AWT / Java Swing
    Replies: 4
    Last Post: July 8th, 2008, 07:32 AM

Tags for this Thread