Web browser ...need help

hello everyone..i have built a simple web browser using java..i can go to google.com or facebook.com but whenever i want to search something or want to login providing necessary information it doesnt work..can anyone tell me whats wrong here??nd how can i solve it?itz really urgent...
here's my code :
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
import javax.swing.*;
import javax.swing.event.*;
public class Browser extends JFrame {
private JTextField enterField;
private JEditorPane contentsArea;
//here's the GUI
public Browser()
super("MY BROWSER");
Container container = getContentPane();
enterField=new JTextField("enter file url here");
enterField.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
getThePage(event.getActionCommand());
container.add(enterField,BorderLayout.NORTH);
contentsArea = new JEditorPane();
contentsArea.setEditable(false);
contentsArea.addHyperlinkListener
new HyperlinkListener()
public void hyperlinkUpdate(HyperlinkEvent event)
if(event.getEventType()==HyperlinkEvent.EventType.ACTIVATED)
getThePage(event.getURL().toString());
container.add(new JScrollPane(contentsArea), BorderLayout.CENTER);
setSize(400,300);
setVisible(true);
//load document;change mouse cursor to indicate status
private void getThePage(String location)
setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
try
contentsArea.setPage(location);
enterField.setText(location);
catch(IOException io)
JOptionPane.showMessageDialog(this,"ERROR retrieving specified URL","Bad URL",JOptionPane.ERROR_MESSAGE);
setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
public static void main(String args[])
Browser application =new Browser();
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}

Hello Fixxer, what did you find out from sprint?
Nurse-Berry
Follow NurseBerry08 on Twitter

Similar Messages

  • My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    My ipad mini doesn't have a web browser! Help. I can't access the internet or iTunes or the app store. The web browser icon isn't even there.Anyone know what to do?

    I'd maybe try doing a search for Safari on your iPad first (swipe to the left to search). If it shows up in that search you can go to Settings > General > Reset and choose 'reset home screen layout' which will put it back where it would be by default.
    All else fails? Restore it.

  • If I set Firefox as my default web browser, the help links on Adobe Dreamweaver and Flash's welcome screens don't connect to the help pages on Adobe's site. It just links to Firefox's start page and stops. The links work properly if Safari is set to the d

    If I set Firefox as my default web browser, the help links on Adobe Dreamweaver and Flash's welcome screens don't connect to the help pages on Adobe's site. It just links to Firefox's start page and stops. The links work properly if Safari is set to the default browser. Please help.
    == URL of affected sites ==
    http://www.adobe.com

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Java Web Browser Pleeease Help !!!

    I did a light web Browser with Java I want that my web browser supports the following Internet standards and protocols likes :
    HTTP 1.1 Protocol
    HTML 4
    Tables and Frames
    Persistent Cookies
    GIF and JPEG Media Formats
    AU Audio Format
    FTP and Gopher File Transfer Protocols
    SMTP and MIME E-mail Protocols
    SOCKS Protocol
    Java Archive (JAR) Format
    THANKs
    Pleeeeeeeeeeease Help me

    i do not wanna do web browser, that is my coswork,Still you need to give a bit more info.
    1) Be aware that data and view of the data are and should remain different things.
    The ArrayList can be used to save the Favourites. And the JList can be used to display them. Alternately, you could also use a tree of Favourite objects, with Favourite extending DefaultMutableTreeNode. This tree can then be displayed using JTree.
    http://java.sun.com/docs/books/tutorial/uiswing/components/index.htmlJust in case you need it.

  • Image not showing in browser - need help urgently

    hi , I'm new to Javafx I'm trying to create display an image in a web browser , not thing complex , this is my code :
    package javafxapplication1;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    Stage {
    title: "Application title"
    scene: Scene {
    width: 800
    height: 800
    content: [ImageView { fitHeight:100 , fitWidth:100 image: Image {   url:"http://braddominy.com/media/images/applescript_dragdrop_icon.png"  ,        preserveRatio:false , backgroundLoading:true} ,x:100 , y:100 } ]
    when I run that example in standard Mode it work properly and the image is displayed , however when i run the example in a browser i get a blank page with a header "JavaFXApplication1"
    i tried to google the problem but came out with no results
    need you help , thanks in advance .
    Edited by: user9377818 on Nov 30, 2010 3:59 AM

    Is the image URL pointing to the same domain as the applet is downloaded from? If not, you will need to sign it. There is a security feature that prevents unsigned applets from downloading material from websites other than the one it is downloaded from to prevent a trojan applet from using your computer to launch a denial of service attack while you run it.

  • Trouble Loading a flat file into BPS using a Web Browser, Please help ?

    Hi Gurus,
    I'm in BW 3.5.
    I did everything and also followed the How to .. paper to upload a flat file into BPS tran cube via a Web browser.
    I created a Web Browser and generated a BSP application. When I run the BSP application I get the following error:
    "The generated data is not contained in the selection condition" UPC204
    The error message also says:
    "The error message can appear when you use a planning function to generate data that is outside the data range specified by the selection conditions of the planning package"
    When I save the variables that I select in the web interface they are getting saved in a table(UPC_VAR_CHA_ACT), but somehow the BSP application cannot look into those values, which I think is the cause of above issue.
    Please help.
    Venkat

    Hi,
    This type of error is quite common in BPS operations. This generally happens due to some missing values in the restriction of the planning levels and the packages.
    The error message is "The generated data is not contained in the selection condition" UPC204
    Check in the planning level and the package, all the restrictions that have been defined and verify whether the values which are getting uploaded through the flat file are present in the election condition of the level or in the package.
    Please award points if helpful.

  • Web Browser needs to study Acrobat file. Allowed?

    I am a new manager in a company and I have a new req.
    I would be using the new Acrobat SDK 9 for this use.
    I need to create a web app that would enable a client-browser to read an adobe file on the server and produce statistics as to number of pages, bookmarks, images etc.
    My questions:-
    1) I beleive EULA 2.3 does not allow this, but what if we buy a license for each user/computer, will it be possible?
    2) Will the new product called Life cycle allow this? if not how can I accomplish this. I am not going to do anything that violates the license agreement.
    If impossible then we will have to try to produce reports in MS-Word/XML instead of adobe.
    Thanks
    Jay

    1) SDK - (your answer was no)
    ME: OK as per your suggestion, Im ruling out the SDK to do this server based web application to analyze the adobe file.
    2) YOU: "The LiveCycle Forms API would allow you to collect very basic statistics (number of pages, etc.), yes. You would not be able to do things like extract images remotely with the Forms API. "
    ME: But will this help me work remotely from the Webpage?
    YOU: You may want to consider the PDF Library SDK for your solution. It is specifically licensed for server use. You can license it from Adobe via Datalogics (http://www.datalogics.com).
    ME:-
    Thanks for the info but Im slightly confused on the conclusion... are you recommending the LifeCycleForms API or are you suggesting PDF Library SDK (is that diff from Acrobad SDK?).
    Ok to avoid confusion, here is more info on the req, and you can recommend what would be needed. Here is the info that our tool must provide form an input pdf file:-
    ***** Per-pdf-file information
    Document Properties:- Producer/Author, "PDF Version", "Page Size", "Number of Pages", "Tagged PDF", "Modified info",
    If it is encrypted or secured?
    if a password was supplied
    If "Content Copying or Extraction" Allowed?
    If "Content Extraction for Accessibility" Allowed?
    If "Printing" Allowed?
    If the PDF have bookmarks?
    Results of Adobe's "Accessibility Quick Check"?
    Adobe Reader / Document Properties / "Can be Opened by: "
    fonts used in the document and if they are embedded in the PDF
    ***** Per-page PDF information
    Can text be extracted?
    Is page completely blank?
    Is the page photo quality? (Need a way to decide if a page should be GIF or JPG when converted)
    Is the page portrait or landscape?
    Is the page doublewide or "unusually sized"?
    Can the page be "Read Out Loud"? (Accessibility feature)
    End: Application should produce an XML with all this information so we can parse it for viewing and also pull it into the next program in our process. Various results will be tagged as "error" or "warning" levels to help judge the PDF itself (encrypted but no pwd=error; everything ok but not "Tagged"=warning).
    BASED ON YOUR SUGGESTION, I WILL PROCEED.

  • FORMS - WEB DEPLOYMENT - NEED HELP -

    Hi
    We have developed some forms using Forms 6.0 on Win NT and now
    wish to deploy that on Web. We have installed Developer Server
    (For Forms, Reports and Graphics) in one of our UNIX boxes.
    What steps are needed to get the Forms run on our Intranet as
    HTML documents?
    Thanks for reply in advance
    Karthi
    null

    Karthi (guest) wrote:
    : Hi
    : We have developed some forms using Forms 6.0 on Win NT and now
    : wish to deploy that on Web. We have installed Developer Server
    : (For Forms, Reports and Graphics) in one of our UNIX boxes.
    : What steps are needed to get the Forms run on our Intranet as
    : HTML documents?
    : Thanks for reply in advance
    : Karthi
    Hi Karthi,
    Forms is not a HTML web deployment. The deployment is based on
    generic Applets. This means that we are transferring the UI to a
    browser by simply replacing Motif (in your case) with Java on the
    server side. If you want to deploy a Forma application in the web
    just create s static HTML file (example files can be viewed after
    installing JInitiator) with a reference to your Forms Module that
    you use as a starting point. Start the Forms Server on the
    command shell with f60ctl start port=9000 (if yiou want to use
    port 9000). Via the web you access the Forms Server by calling
    the static HTML File. In this HTML there is a request for the
    Forms Listener.
    Hope this short answer will give you a hint.
    null

  • Rookie Web Designer Needs Help!

    I am working to set up my web site, but have three questions. I need to say that I know absolutely nothing about HTML code/editing, so a lot of what I have looked at in discussions has been like a foreign language to me!! Help!!
    Questions:
    1) I am trying to claim my blogs with technorati.com, but in order to do so I need to be able to "select the edit HTML button" then post code they have set up to cut and paste. I have been unsuccessful, and am assuming that I this has to do with needing to utilize HTML in a way other than the automatic hyperlinks that are available through iWeb. How can I accomplish this task? I am trying to allow their spiders to visit the page so I can increase the likelihood that interested individuals can find my site.
    2) How can I adjust my hyperlinks to open in new windows instead of the same window?
    3) Right now my site address is http://web.mac.com/teachabroadministry/iWeb/Site/Home.html Is there anyway to make this simpler (ie. teachabroadministry.com or something like that?)
    Thanks for any help you can give me with these quesitons!!
    Tod Wood

    Yes I did. Yahoo has some pros and cons. The Control Panel in Yahoo is very simple, compared to 1&1, and a quick check of Yahoo shows some features that weren't available prior to my switching. I had great difficulty uploading to Yahoo using Fetch, and I never did sort that out; may not have been Yahoo's fault. (I'll never know!
    I can upload very quickly and easily to 1&1, they offer 25 free subdomains with each domain name, and you have a lot of free features Yahoo doesn't have. (To my knowledge). Basic CGI's ( I use the free forum for my blog), chat rooms, and Webstats, to name a few.
    For the money, I don't think you can beat them.

  • Flash web gallery NEED HELP

    I have no clue how to program these flash galleries....My
    site www.al-burke.com contains a flash web gallery that I purchased
    online and I have been able to upload it to the site but its says
    movie not loaded. I have all the neccessary files in place I
    believe (gallery.xlm, main.html, main.swf) all under a folder. Can
    anyone please help me out? Thanks

    Does it work when you test it from your local drive? If it
    does, but doesn't work when you post the files to the server, you
    may not have uploaded all of the parts correctly. If it doesn't
    work when testing from the files on your harddrive either, then
    there is a linking issue - have you moved any of the files after
    the gallery was created...? (If so, the links will be broken).
    You also reference a file named "main.html" - this isn't the
    name of the file that's posted - if you created a file named that,
    then changed the name to index.html without updating the links when
    prompted, that will also break the links...
    Hope that helps...

  • JavaScript error while browsing. need help

    While browsing any webpage running java. When asked a question. After I choose an answer. I receive this message "JavaScript: An error occurred while executing a script." Can anyone help me with an update or something.

    Looked up the problem. Response from Black berry support was that they know of the problem. There are certain scripts not yet supported by black berry. They are aware of this, and do not have a solution as of yet.

  • Slow Browser - Need help ASAP

    Hi all,
    So I am having an issue with my browsers, both Safari and Firefox. They both have been going REALLY slow. I am using an iMac running Leopard, and it is duelbooted via Bootcamp with WIndows Vista. The browser runs perfectly fine on Windows but as soon as I boot up Mac OS the internet runs real slow. I am not sure what is going on, I am brand new to Macs so I am confused. It was running perfectly fine for months now and then all of a sudden it slows down a lot, so slow that I am booted Vista right now. Can anyone help me?
    -Ralph
    PS: Oh I have cable internet.

    See these for speeding up Safari:
    http://reviews.cnet.com/8301-13727_7-10354948-263.html?tag=mncol
    http://reviews.cnet.com/8301-13727_7-10328447-263.html?tag=mncol
    http://reviews.cnet.com/8301-13727_7-10328453-263.html?tag=mncol
    As for being new to Macs, see these:
    Switching from Windows to Mac OS X,
    Basic Tutorials on using a Mac,
    Mac 101: Mac Essentials,
    Anatomy of a Mac,
    MacFixIt Tutorials,
    MacTips, and
    Switching to the Mac: The Missing Manual, Leopard Edition.
    Additionally, *Texas Mac Man* recommends:
    Quick Assist.
    Welcome to the Switch To A Mac Guides,
    Take Control E-books, and
    A guide for switching to a Mac.

  • LR Web Galleries, need help

    I use LR's web galleries for my clients to view their proofs on line, I am on a Mac and my clients who are on a PC see white specs in the very black areas of the photos, I tested this out and it is only when viewed on a PC that this appears, not on Mac's. Are you familiar with this problem? Is there a way to fix this?

    Can you establish a sample gallery to show the problem and post a link to it here?
    Beat

  • Photo web site needs help

    Greetings, I have a website showcasing my photography and I
    would like to add a feature for my viewers.
    When a visitor enters a photo galery I would like to make the
    setup such that when a mouse rolls over the image a pop up appears
    describing the image (brief description etc... )
    I have shot a number of rock bands over the years and I would
    like to provide info (to those and other topics).
    the site addy is www.douglaswhitephotography.com
    Thank you in advance for any info that someone might be able
    to provide.
    [email protected]
    DW

    Douglas,
    There are many different ways of presenting images and like
    most developers I prefer to build my own or occasionally use a good
    API or component that I can customize.
    You can check Project VII for a basic css/html gallery that
    is fairly cheap and easy to use without much coding knowledge
    necessary. It does not provide a caption though; you would have to
    add that.
    Another option is to use an embedded Flash component, which
    is also very easy to do. The best offerings on the market have
    great users guides and active forums where you can pose questions
    and look at FAQs.
    I recommend SlideShowPro, which has the best users manual and
    provides an infinite number of options, including captioning. You
    need Flash for this one though.
    Googling for 'image galleries' will give you lots of options,
    both html/css based and Flash based.
    Another option is to buy a good, modern JavaScript coding
    book and build your own image gallery. It is not as difficult as it
    may seem. Amazon has some great deals on these types of books. I
    recommend the Visual Quick Start Guide series, JavaScript and AJAX,
    Sixth Edition, or DOM Scripting, which is published by Friends of
    Ed. Both have html based examples of building galleries.
    Regards
    Nick Barling
    www.barkingweb.com

  • Need help! how to open a shared folder thru web browser

    Hi to all LV'ers,
    as the subject implies, i am trying to find a way to view the shared folder w/in the company network thru web browser. is this possible? is there a much easy way?? i never been used FTP vi's before or any other vi's to deal with this situation but i successfully used web publishing tool to make an access of LV front panel remotely using "web publishing tool". btw, im using LV 8.5.1.
    my purpose for this is to let our boss to have a quick access of the data from excel files (w/ "s" because many excel file report is generated everyday for data updates) resided in remote computer (this computer runs the LV program and we can view its front panel remotely thru web publishing tool but i also need to view the folder of this computer that contains files). that is why im finding a way to have an access not only a specific excel file but a specific folder. ofcourse, we can access the shared folder thru "my network places>>entire network>>microsoft windows network" if the folder is shared but our boss is far more convenient if we LV programmers can create a button to automatically lead them to the folder containing files they needed.
    I hope anyone already done dealing with this can shared their solutions.
    deeply appreciate your help!!
    regards,
    ivel
    Ivel R. | CLAD
    Solved!
    Go to Solution.

    i think what i told in my 1st msg makes things more complicated than what i really need, sorry for that.. but for sure, i need this to be done in LV because the data from excel files was generated by LV program and this LV program is displayed in our web (thru web publishing tool), see picture below.
    what i want to do is to add a button here in front panel that when pushed, will show the folder consisting of several excel files. with this, i can choose what particular excel file to be opened. sorry guys i make you confused in my situation. here i attached i simple VI to let me open the excel file but unfortunately when i select the desired excel file, the dialog says "path not found". when i browse and open the excel file manually using "entire network>>microsoft windows network>>remote computer name>> shared folder>>excelfile", i can successfully opened it.
    i dont know why i cannot make a valid path using my attached vi. maybe there's something wrong with my program,please let me know. the attached vi is LV 8.5.1. i will used this vi as a subvi later in the front panel shown above.
    thanks in advanced for help..!
    Ivel R. | CLAD
    Attachments:
    Untitled 2.vi ‏44 KB

  • Help need in Web Browser Project

    Hai,
    I am doing a java Web browser project which was fully java code. I want some information ragarding to that project. First I used JEditorPane for displaying HTML Content. But it was not executing JavaScript. My friend told that JEditorPAne was rendering HTML pages of HTML3.2 version. It wont render Javascript. So try for other things.
    I used IECanvas but it just embedding the component of Internet Explorer or Mozilla. I don't want to embed those things. I need java components only. After that I have to do Charecter Encoding on that one. Pls anybody help me regarding to this matter. Its Urgent

    Dear hiwa,
    I saw the JDIC API. They told that it embeds some predefined browsers called INTERNET EXPLORER. But I don't want to embed these things. Is there any solution other than this? U saw ICE Browser. it was implemented in fully java having many functionalities.It is third party API. I tried to use that API but they gave 30 days trail period. So I am afried of that. I just want to display the HTML page that supports JavaScript. I saw rhino which is an Interpreter for javascript.
    Is there any possibility to embed this interpreter to JEditorPane or any java component. Pls give me details if Possible.
    thanks for your kind information.

Maybe you are looking for