File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Making a Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Making a Browser" Watch "Making a Browser" New topic
Author

Making a Browser

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 744
Hi, I was wondering if it was possible to make a browser using standard java.
Or is it just too compicated for me to bother with?
Thanks
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Been done and a bit pointless never-the=less IMHO.


GenRocket - Experts at Building Test Data
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41046
    
  43
Netscape tried to do it, with lots of manpower thrown at it, and when browsers had way fewer features than today, and failed. So I'd say look for some other project that doesn't compete with powerful, free, native-code products on the market.


Ping & DNS - my free Android networking tools app
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Ofcourse it's possible in principle - you can make anything with Java.

Swing already contains classes that can render HTML (see the package javax.swing.text.html) so you won't have to write your own HTML renderer and parser from the ground up, although the Swing classes are most likely not as sophisticated as the major web browsers.

Java also has classes for reading data over HTTP (see java.net.HttpURLConnection).

So it's probably not too difficult to make a simple browser with Java.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
As a matter of historical perspective, I would like to point out that when Java was first introduced, the most complex and powerful Java application was in fact the "Hotjava" browser. Google search for "hotjava browser" will get you to the source code.

It was pretty impressive at the time, especially the molecular model applet that let you rotate a "ball and stick" model in real time with the mouse.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Making a Browser
 
Similar Threads
Ajax and browser compaitibility
Major part of Ajax
Installing Tomcat.
How to refresh a div on a click on a button
WA #1.....word association