Hi all,
I'm trying to make a simple browser that will try to display web pages
and will also check for user's mistakes such as omission of "http://" or
"www". What I'm having difficulty with, is how to test if a page
is downloaded (that is if the URL is correct) after "setPage" method is called.
Would this be a proper way to do it?
Thanks a lot
stack
I'm trying to make a simple browser that will try to display web pages
and will also check for user's mistakes such as omission of "http://" or
"www". What I'm having difficulty with, is how to test if a page
is downloaded (that is if the URL is correct) after "setPage" method is called.
Would this be a proper way to do it?
Code:
if(editorPane.getPage().toString().equals(""))
//then the URL is not working
Thanks a lot
stack
Comment