To Develop a Browser using Java

Hi,
I want to know if it is possible to write a browser using java.If so where can i get more information regarding this.
Juz let me know the details.
Thanks in advance...
ramya

Dear Ramya,
You can use JEditorPane with setEditable(false) as the HTML rendering engine. For other components, you have to look elsewhere.
S. Senthil kumar

Similar Messages

  • Developing a browser in java

    Hi All,
    i want to know whether i can develop a browser using java swings..If so where i can get more details on this...
    can anyone help me..
    Thanks..
    ramya

    I Have developed one such basic application employing JEditorPane. The Code is as follows
    ReadServerFile.java
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ReadServerFile extends JFrame {
         private JTextField enter;
         private JButton go;
         private JEditorPane contents;
         JToolBar jtb;
         JScrollPane jsp;
         JButton jbLoad,jbUnload,jbDesc,jbFind,jbSave,jbPrint,jbGet,jbGetNext,jbGetBulk,jbSet,jbBrow,jbTrap,jbGraph,jbTable,jbDebug,jbClear,jbStop,jbHelp,jbExit;
         public ReadServerFile() {
              super("Simple web browser");
              getContentPane().setLayout(null);
              int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
              int h = ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
              Container c = getContentPane();
              enter = new JTextField("Enter file url");
              enter.addActionListener( new ActionListener(){
                        public void actionPerformed(ActionEvent e){
                             getThePage(e.getActionCommand());
              enter.setBounds(25,50,500,30);
              c.add(enter);
              //c.add(enter,BorderLayout.NORTH);
              go = new JButton("Go");
              go.setBounds(550,50,75,30);
              c.add(go);
              contents = new JEditorPane();
              contents.setEditable(false);
              contents.addHyperlinkListener( new HyperlinkListener() {
                        public void hyperlinkUpdate(HyperlinkEvent e){
                             if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
                             getThePage(e.getURL().toString());
              //c.add(new JScrollPane(contents), BorderLayout.CENTER);
              jsp = new JScrollPane(contents,v,h);
              //contents.setBounds(25,100,650,400);
              jsp.setBounds(25,100,700,450);
              c.add(jsp);
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              setBounds(0,0,screenSize.width,screenSize.height);
                   jtb = new JToolBar(0);
                        jbLoad      = addToolButton(jbLoad,new ImageIcon("load.jpg"),"Load MIB Module");
                        jbUnload      = addToolButton(jbUnload,new ImageIcon("unload.jpg"),"UnLoad MIB Modules");
                        jbDesc          = addToolButton(jbDesc,new ImageIcon("describe.jpg"),"Description");
                        jbFind          = addToolButton(jbFind,new ImageIcon("find.jpg"),"Find MIB Node");
                        jbSave = addToolButton(jbSave,new ImageIcon("saveresult.jpg"),"Save MIB browser results");
                        jbPrint          = addToolButton(jbPrint,new ImageIcon("printresult.jpg"),"Print MIB browser results");
                        jbGet          = addToolButton(jbGet,new ImageIcon("get.jpg"),"Get SNMP variable");
                        jbGetNext     = addToolButton(jbGetNext,new ImageIcon("getnext.jpg"),"Get Next SNMP variable");
                        jbGetBulk = addToolButton(jbGetBulk,new ImageIcon("getbulk.jpg"),"GetBulk SNMP data");
                        jbSet          = addToolButton(jbSet,new ImageIcon("set.jpg"),"Set SNMP variable");
                        jbBrow          = addToolButton(jbBrow,new ImageIcon("settings.jpg"),"MIB browser settings");
                        jbTrap          = addToolButton(jbTrap,new ImageIcon("trap.jpg"),"Trap viewer");
                        jbGraph          = addToolButton(jbGraph,new ImageIcon("graph.jpg"),"View real time graph");
                        jbTable          = addToolButton(jbTable,new ImageIcon("table.jpg"),"View SNMP table data");
                        jbDebug          = addToolButton(jbDebug,new ImageIcon("debug.jpg"),"Debug");
                        jbClear          = addToolButton(jbClear,new ImageIcon("clear.jpg"),"Clear results display");
                        jbStop          = addToolButton(jbStop,new ImageIcon("stop.jpg"),"Stop");
                        jbHelp          = addToolButton(jbHelp,new ImageIcon("help.jpg"),"Help");
                        jbExit      = addToolButton(jbExit,new ImageIcon("exit.jpg"),"Exit");
    jtb.setBounds(10,10,400,60);
    c.add(jtb);
              //setSize(400,300);
              show();
         } // end of constructor
              private void getThePage(String location){
              setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
              try{
                   contents.setPage(location);
                   enter.setText(location);
              catch(IOException io) {
                   JOptionPane.showMessageDialog(this,"Error retrieving specified url","Bad url",JOptionPane.ERROR_MESSAGE);
              setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
              } // end of getThePage
              public JButton addToolButton(JButton name,ImageIcon image,String tooltip)
                        name=new JButton(image);
                        name.setBorderPainted(false);
                        name.setFocusPainted(false);
              // name.addMouseListener(this);
                        name.setToolTipText(tooltip);
              name.setMargin(new Insets(0, 1, 0, 1));
              name.getAccessibleContext().setAccessibleName(tooltip);
              name.setActionCommand(tooltip);
                        jtb.add(name);
                        return name;
              public static void main(String args[]) {
              ReadServerFile app = new ReadServerFile();
              app.addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e)
              { System.exit(0);} } );
         } // end of Main
    } // end of this class
    For any other details contact me at [email protected]

  • How to create and install a toolbar to a browser using java

    Hi all,
    Can any one guide me about how to create and install toolbar to a browser using java ??
    please any one help me about this,i am not getting any idea about this..
    Thanks and Regards
    Sandesh S

    I doubt you can. Those browser toolbars are done by implementing to an API provided by the browser. That API, I don't believe, is provided via Java. But of course, that would be entirely up to the browser, not Java.

  • How to display Map for viewing in browser using Java

    I am fidning a solution for displaying political maps in browser using Java technology.
    Is ther anybody with a solution.
    Waiting for your respone.
    Regards
    Mithun

    palanithendral wrote:
    Hi,
    Our application using in English, German, Franch and chinese.You have several different idioms in your application and have not accurately identified where the actual problem is. You have all of the following
    -database
    -http
    -excel
    -excel in http
    -display on the target computer
    The first step with these sorts of problem is to identify where the problem actually occurs.
    String chineseCharacter=""; // chineseCharacter like 長长牀床東东彿佛. This chinese data coming from oracle database..A good theory. Now explain how you proved that that is what is coming from the database.
    After export the data to excel show the result for 長长牀床東东彿佛.As another example. Presumably you are referring to what the browser on the target computer displays. Your theory is that that computer and that browser (together) will display the correct information if they had the correct data. How did you prove that?

  • Browser using java!

    Hi all,
    I want write a very basic browser using java.
    Can you plzz tell me the starting point....I mean which API to look for.
    Thanks a buch,
    Naren.

    Try using JEditorPane. JEditorPane has very limmited HTML support, but it is a good start.

  • How to develop discussion forums using java

    Hi, can any one kindly explain how to develop disccussion forums using java.
    the application is like same as this forum. one post and the replies are come after that. creating new threads.
    any tutuorial is available for this. what is best dabase for this. and which application server is required.

    if you want to use a forum for sum purpose download an opensource forum software and deploy it in a server that support the serverside technology that it uses.
    If you dont want to go through the trouble of installing the the forum software (normally there is a quaita bit of configuration to do). Goole for Free Forum Hosting and you will get plenty of places that hosts forums for you. Since they do the installation you dont have to wory about that part.
    If you really want to develop a forum software first install an existing open source forum or get an account in a free forum hoster and take good look at the forum software and the features that it provides.
    In here you only see the front end of the forum. The back end is much more complicated. You have to define forums and forum groups, you have to define user groups, you have to define which users has access to which forums. who can start topics and who can reply to topics and whgo has read only access. And how to clollect and stor statistics like number of posts by each user. And the list goes on...
    So first take a look at the features in both front and back end of an existing forum software and decide what you want in your software. Then you can design the database to support those features. And then start coding.
    Technicaly you will need to know how to do servlets/JSP and JDBC in order to build a forum. Most important part is you have to do lots of planing.

  • LightweightDispatcher issue with Applets in Browser using Java 7, not 6

    Spent the last year at work setting up some GUI JApplets for demos our of code. The JApplets house a number of layers of JPanels and JComponents, but should have no heavyweight components as children. I've set up standalone applications that run one of the JApplets as a child of a JFrame, and those demos have no trouble. When I run the same demo but as a JApplet in a browser, I get errors. Please note that the demo is a JApplet but written like the demo that uses a JFrame, so the JApplet causing an issue is a child of the JApplet the browser knows about.
    The issue is seen when the user mouses-over the child JApplet. The listener of the component being moused-over is trying to send an event that the LightweightDispatcher is erroring trying to retarget. It does not seem to find the component that should be receiving the event. For reference, the JApplet implements the mouse-listener interface and is set as the mouse-listener for all its children recursively. Here is the error that is seen:
    Exception in thread "AWT-EventQueue-2" java.lang.AssertionError
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at java.awt.EventQueue.access$000(Unknown Source)
         at java.awt.EventQueue$3.run(Unknown Source)
         at java.awt.EventQueue$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue$4.run(Unknown Source)
         at java.awt.EventQueue$4.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    and it repeats that for every mouse event that tries to fire within the child JApplet.
    Any thoughts on what this could be?
    I had a similar issue with key strokes not finding the focused JComponent within the child JApplet, but I made my own KeyboardEventManager to handle that issue. Unfortunately there are no paths like that to override for the mouse listeners, not to mention that there is no focused object for the events erroring.
    I do see that when I stop adding the mouse-listeners then the error does not appear, so I'm sure its related to that.
    I suppose the most important note here though is that the JApplets were built using Java 6, but the error is seen when running the JApplet with the 1.7 JRE. Also, the JApplet is opened using a JNLP. When the JNLP is set to run at 1.6+ the demo runs fine, when set to 1.7+, the error is seen.
    Please let me know if anyone has seen this or has a solution, or if I should report this as a bug to Oracle.

    This shouldn't be the case. You did make sure you are pointing the applet at the plug in correct? That means you are using an <object> tag as opposed to the <applet> tag in the HTML file?
    If not, run your HTML page through the HtmlConverter that comes with the plugin and try using the resulting HTML.
    Bryan

  • WebStart support for Firefox Browser using Java Linux AMD64

    I am trying to setup a Firefox browser to use Java WebStart (jnlp).
    I am running Java Linux (AMD64)
    but I have no <JAVA_HOME/jre/plugins directory and no libjavaplugin_oji.so file with the Java installation.
    1) Can I download libjavaplugin_oji.so plugin somewhere?
    2) Will it work in Java Linux (AMD64)?
    3) Can Java Linux (AMD64) be setup to operate Java WebStart Technology?
    If so, How the h--- do I do it?
    Frustrated
    Newbean

    I have the same problem. Downloaded the 64 bit jre and found no libjavaplugin_oji.so in it.
    Then downloaded the 32 bit jre and did the soft link and still no work.
    Has anyone made the 32 bit jre work on the 64 bit linux?

  • OpenGL in C++  displayed on a web browser using java??

    I have a OpenGL application written in CPP that I would like to display on a web browser.
    I was wondering if their is a way to do this using java. Maybe somekind of java wrap.
    Thank you

    Maybe some kind of ActiveX control perhaps ?
    Not too familar with ActiveX programming though...
    regards,
    Owen

  • How to develop e-commerce using java

    Can you please give me the source code for building e-commerce/web site using java?

    no, he wants the sourcecode of something that will
    let him build e-commerce sites.
    Something like one of those "create an online shopin
    5 minutes" packages you can buy from some stores.and he wants to use java. so the problem comes down
    to:
    java BuildMyECommerceSite <sitename>OH why didn't he say so ??
    Does he want the included tv advertising campaign ? ;-)

  • How to design a custom browser using Java?

    Hi,
    Which of the Java APIs (packages) we have to use to design a custom browser?
    thanking you,

    R6i wrote:
    Hi,
    I will agree with your words jverd.
    But, APIs like WebRenderer API (http://www.webrenderer.com/) can be used in developing Browsers (of course, this API is also based on Core APIs of Java).
    Here my question is what are the different packages of Java that are needed exactly to design Browser with out the help of THIRD PARTY API(like WebRenderer API).
    thank you.You're totally missing the point.
    Which tools should I use to build a house?
    Which ingredients should I use to cook a meal?
    Which subjects should I study in college?

  • Seeking Help for Guidance in developing a product using JAVA CARD

    Hi All,
    I am using windows environment with netbeans 6.8 as developer tool and MySql Server connectivity for back end process.My requirement is to develop applets and installing them to my Smart card and reader.my question is
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?
    2. how to install them into the smart card?
    3.what are the commands i am supposed to follow if other than APDU commands?
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.
    5.if possible please help me with a small example so that i will start developing it.
    can anyone help me in developing this application.i will be so helpful if anyone helps me in guiding me to develop the java card product.
    Edited by: Sijukj on Mar 4, 2010 7:04 AM

    Hi,
    Welcome to the wonderful world of embedded Java development!
    Sijukj wrote:
    1. how i am supposed to create applets to get the student id of particular student whose id is already registered in the database?The first step is to download the Java Card Development Kit (JCDK) from the Sun website (along with the related documentation/specifications). If you plan on using your code on a real card, I would recommend JC version 2.2.1 or 2.2.2. If it is sufficient to run your applet on a simulator (as a proof of concept or for assignments) with no intention on running on real hardware you could go for JC 3.0.2 and use the supplied simulator. This version of JC does not have commercially available cards as of yet.
    Once you have the applet coded and installed on your card, you would personalise the card for the card holder. This means loading card holder specific data into your application. This may also involve registering the smart card ID with the student in your database.
    2. how to install them into the smart card?The procedure for loading and installing applets is outlined in the Java Card documentation (available with the JC development kits from Sun) and the GlobalPlatform card specifications (available from [http://www.globalplatform.org]). You can look into some open source tools for doing this (GPShell and the Java Card Development Kit).
    3.what are the commands i am supposed to follow if other than APDU commands?This depends on what you are trying to achieve with your applet. If you want interoperability you could implement a standard like ISO7816 or IOS24727. This is a lot of work so you may just want to implement the proprietary you require for each operation you need (e.g. set student ID, get student ID etc).
    4.i found there is APDU commands but what do that each CLA,INS,p1,p2,Lc,le..commands used for?how can i use them in my creation of applets.i found the command varies for certain requirements.These are defined in ISO7816 part 4.
    The CLA byte gives information on the command you are sending such as secure messaging, command chaining, ISO or proprietary command
    The INS is the instruction or command you are trying to perform
    P1 and P2 are parameters to the command. These may not be required for each command but are able to be used to convey further information to the applet.
    Lc is the length of the data field you are sending (e.g. for a PUT DATA command this would be the amount of data you are sending)
    Le is the length of the data you expect to receive back from the card. If this is absent you do not expect the card to return any data, 0x00 means send all the data you have left (up to the limit of the response APDU)
    5.if possible please help me with a small example so that i will start developing it.You can find example code in the Java Card Development Kit. There are a wide range of examples there that can help you get started.
    Cheers,
    Shane

  • How to make a net browser using java

    We want to make an MultiLingual Explorer in JAVA .So please help me in the case thatfirst i want to do the coding of the basic interface as the menu option like open,save,save As etc.So how can i start it in java.Is their any builtin support or what is the best possible ways.I sahll appreciate the cooperation....
    Kindly help me out....
    (As i am a student and new in java so plz guide me thoroughly)
    Thanx

    There have been java browsers that have been developed + this is well-documented (at least in one or two texts i've read, i assume on-line too), but they're quite complex + i doubt if someone new to java would be able to customise it without a brain haemorrhage. Tough call!

  • Developing webservices using Java SE6 and Tomcat Webserver

    Hi All,
    I am trying to develop a webservice using Java SE6 Beeta SDK with Tomcat webserver. I read somewhere in the Sun site and it says JAXWS2.0 is fully packaged with JAVA SE 6 SDK? If this is correct then what are all the remining packages(jar files present in JWSDP2.0) required to develop and publish the webservice.
    I does the setup as follows.
    - Install the Java SE6 SDK Beeta available.
    - Install Tomcat 5.17 webserver.
    - Started the webserver by setting java_home as SDK6.
    I am not able to publish the webservice with this setup
    Do i need to place any other package present in JWSDP2.0 in Tomcat_home/common/lib ?
    I used the same example present in JWSDP2.0 package.
    Please guide me regarding this?
    Thanks In Advance,
    Mohan

    Any ideas on how this could be achieved.Have you looked at the Unofficial Web Start FAQ at the Lopica site?
    - Gerald
    PS: You might wonna also consider posting your question to the Java Web Start developers group at Yahoo! See http://groups.yahoo.com/group/webstart

  • How to develop a discussion forum using Java?

    I am actually developing a forum using Java. That would actually include registering process for a new user and if the user has an account, he can log in. The program should then generate a welcome message and a randomly-created password of 8 char (char+digits), this wil be printed on the screen. I am quite a newbie in this area.. Appreciate for ur help
    Thanzz....

    and what is more import than actual programming when making a software like a forum system is the database design.
    so first you have to designe your database
    decide which data that you have to store and decide what are the table that you will need and what columns that you want in the tables
    thats where you should start

Maybe you are looking for

  • EA6500 - Windows Home Server 2011 UPN Setup

    Can you please ge to work on this. I like access to files on the road and I manually setup the router since UPN did not work but occasionaly it is unavailable. Running setup via the Windows Home Server interface always fails on the port forwarding st

  • BPM 11.1.1.5.0 Features Pack: UCM integration issue

    Hi all, I have installed BPM SP4 FP successfully on Windows. But I have a problem with UCM integration. In Jdev, I configured the Human Task use UCM to store the documents. But after deploying on WLS, in BPM workspace, I cannot use attachment functio

  • How do I add a link to the key chain?

    I am new to mac , my supplier is asking me to add them as a trusted site . I am having trouble doing this . All help is appreciated. Thank you in advance

  • How do I output the "Customer Type"

    I am want to hide some content in a secure zone based on the "Customer Type". How do I output this CRM field?

  • HT1918 Credit card payments

    Guys I've just changed my billing information, I.e. credit card etc, and now I can not purchase anything because it tells me purchase have failed?? Nothing wrong with my card! Very annoying!! Needing help!