?
Solved

Create Browser.

Posted on 2004-10-16
11
Medium Priority
?
269 Views
Last Modified: 2008-02-01
Hi - me AGAIN. :)

I would like to create a browser, basically.
I can connect to a server, request a document, etc.. I've programmed a Web Server before, so, I can handle that side of it. However, the bit that I know nothing about it displaying the webpage/document.
I know how to display a basic HTML files, as demonstrated here: http://www.javaalmanac.com/egs/javax.swing.text/ep_ShowHTML.html .

However, how would I go about enabling JavaScript, and Flash animations, etc..
Does there exist a package already that displays advance web pages?

I'm fluent in HTML, and pretty good a JavaScript (and I'm modest :P), but, I just don't know how to display a webpage! :(

Any links, or info would be MUCH appreciated.

Thanks in advance! :)

[r.D]
0
Comment
Question by:DrWarezz
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 400 total points
ID: 12326869
> Does there exist a package already that displays advance web pages?

Nope...Well, there wasn't when I looked 2 years ago :-(  And people are complainging about the lack of movement in the java HTML rendering code with 1.5, so i guess there hasn't been much improvement...

I think you will need to write some JNI layer that communicates with the user's chosen browser...  That's the only way I can think of :-(

Tim
0
 
LVL 9

Author Comment

by:DrWarezz
ID: 12326884
Thanks Tim :)
Could you give me some more info on writing some JNI layer that communicates with the user's chosen browser?

This would be much more useful for me as well, because the program I intend to write is not JUST a browser, I felt that there should be a feature to surf the web (as well as everything else). So, that would be useful.  :)

Thanks,
[r.D]
0
 
LVL 92

Assisted Solution

by:objects
objects earned 400 total points
ID: 12330348
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Assisted Solution

by:Javatm
Javatm earned 400 total points
ID: 12331028
Hi;

Regarding your question :

> However, how would I go about enabling JavaScript, and Flash animations, etc..
> Does there exist a package already that displays advance web pages?

I got what you need, I researched and found this - (Here's a Java API) :
http://www.javaapis.com/jiebrowser/

Its a free trial but you have to pay for it when it expired. I've tried it and it run my
flash site w/ javascript in it.

Hope that helps . . .
Javatm
0
 
LVL 9

Author Comment

by:DrWarezz
ID: 12331836
Thanks for those, however;
-Are there no freeware APIs? :o(

I don't have the funds to purchase these APIs.

If none of you can think of any (free :P) alternative solutions, then it's okay, I'll split the points and leave it at that.

Thanks,
[r.D]
0
 
LVL 15

Expert Comment

by:Javatm
ID: 12334424
I dont believe that there are free for it right now, that API are actually hard to create and find, Maybe the best advice is you can
choose the cheepest or you create your own but remember that if you create your own it will include 3rd party language.
You have to have them communicate w/ java.

http://java.sun.com/docs/books/tutorial/native1.1/
http://java.sun.com/j2se/1.4.2/docs/guide/jni/

You can use this for integrating some .com or dll which you might need :
http://jawinproject.sourceforge.net/

Hope that helps . . .
Javatm
0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 400 total points
ID: 12335928
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12335963
another browser in JDIC components, much similar way like javaworld article link posted above
https://jdic.dev.java.net/
0
 
LVL 5

Assisted Solution

by:Naeemg
Naeemg earned 400 total points
ID: 12336542
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 12883138
To add some value to this PAQ.

The source for currently the best browser in the industry - Mozilla - can be found here: http://www.mozilla.org/source.html
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month13 days, 18 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question