Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Making a Browser

 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Been done and a bit pointless never-the=less IMHO.
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Let's get him boys! We'll make him read this tiny ad!
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic