Solved

Create Browser.

Posted on 2004-10-16
11
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 100 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 100 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 100 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 100 total points
ID: 12335928
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12335941
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 100 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mysql jsp example issue 32 76
Java program running SQL query 5 50
Need help aligning JRadioButton that put in a box using GridBagLayout 2 27
web project error add remove 1 57
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

697 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