Java Browser
I am looking for a Java browser for a pJava platform - any pointers?
I was recently looking for the same...
Here is what I found:
JavaBrowser: http://www.ii.uib.no/~jeremy/sw/TheBrowser/ - This is open source and was release a long time ago (like 1996)
Ice Storm
http://www.windriver.com/products/html/icebrowser.html - This is commercial, ran so-so for me.
Espial Escape
http://www.espial.com/main/page?view=escape_48_about_web - Commercial and quite expensive. Sample apps ran so-so.
Net Clue
http://www.netcluesoft.com/ - Didn't run well for. It's commerical but not terribly expensive.
HTML browser
http://www.xs4all.nl/~griffel/java/html.html
This one's free but runs slower than JavaBrowser
JEditorPane in Swing
Swing just runs too darn slow for me and that .jar file is huge.
For my testing, I'm using a Compaq Ipaq 3635 and Jeode VM. In the end, JavaBrowser far outperformed anything else because it renders html pages incrementally, but it lacks support for many features, most importantly html tables. It was also written using Java 1.0 event models so it contains quite a bit of deprecated code.
Hope this helps,
-Brad
Similar Messages
-
Making a java browser component for Mac platform(Urgent)
I was trying to make a simple java browser component from scratch for running on Mac platform. I was using JFrame/JEditorPane. Although JEditorPane can open web pages but it can't support Javascript, flash and other interactive features of many websites. Does anyone know any way to make JEditorPane support javascript?
I also researched on JDIC java web browser, but unfortunately they don't support for Mac yet. Is there any free third party tool available which I can use?
Any quick help is appreciated. Thanks.I was trying to make a simple java browser component from scratch for running on Mac platform. I was using JFrame/JEditorPane. Although JEditorPane can open web pages but it can't support Javascript, flash and other interactive features of many websites. Does anyone know any way to make JEditorPane support javascript?
I also researched on JDIC java web browser, but unfortunately they don't support for Mac yet. Is there any free third party tool available which I can use?
Any quick help is appreciated. Thanks. -
How to make a java browser to execute java-applets
Hi all!
I' ve recently build (according to examples that I came accross) a java browser that successfully loads HTM, HTML and JSP pages, but it doesn 't load any of my java applets.
What could be wrong? Does anyone have an idea?
Thank you, in advance.
John.If you like I could personally mail to you my code of java-browser.
John. -
Issues in Java Browser. Urgent !
I developed a simple Java browser using JEditorPane+HyperlinkListener,but it can't support HTML scripting languages.
Are there some buildin API or other supportive packages developed by third party which can do HTML scripting translating?
I will very appreciate your help if you can help me out.Hi,buddy! I have no idea how to embed Gecko, could you
give me some details. Thanks a million.I haven't tried to do it (it takes too much time for me , and there's no point in doing it, since the HTML 3.2 and limited CSS stuff is enough... I do hope they will move the HTML support to a higher level, i.e. full HTML4.1/CSS2 compliant)
Read the FAQ:
http://www.mozilla.org/projects/embedding/faq.html
There also some projects around using an embedded gecko. -
Hi!
I would like to create a Java Browser who is able to deal with the Javascript.
(Right now I see error messages).
Is this possible?
Please help.Thanks! What do you mean with " then hammer it into
your HTML display component"? How would you proceed?Depends on what HTML Display (JEditorPane, FS, custom) componet you are using.
What would you consider as the simplest solutions?
None. It would be hard. I'd cheat, and go with JDIC Browser component. -
I'd like to enable an applet to modify the DOM in a browser window directly (ie. by using org.w3c.dom.* stuff). I'm using the latest 1.5.
I'm using a small class that I've pasted below to attempt to facilitate this. It evidently works in MSIE, where I receive the "Got document" message indicating a non-null value for 'page', but in Mozilla or Netscape, I get the following exception thrown:
netscape.javascript.JSException
at netscape.javascript.JSObject.getWindow(Unknown Source)
at sun.plugin.dom.DOMServiceProvider.getDocument(Unknown Source)
at sun.plugin.dom.DOMAccessor.getDocument(Unknown Source)
at econ.ClientLink.run(ClientLink.java:35)
at sun.plugin.dom.DOMService.invokeLater(Unknown Source)
at econ.ClientLink.start(ClientLink.java:25)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
com.sun.java.browser.dom.DOMUnsupportedException
at sun.plugin.dom.DOMServiceProvider.getDocument(Unknown Source)
at sun.plugin.dom.DOMAccessor.getDocument(Unknown Source)
at econ.ClientLink.run(ClientLink.java:35)
at sun.plugin.dom.DOMService.invokeLater(Unknown Source)
at econ.ClientLink.start(ClientLink.java:25)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Got document: null
Is this just simply only supported for MSIE? This seems highly unlikely.
I suspect it might have something to do with permissions in Mozilla, as these lines also appear in the log:
liveconnect: the url of the applet is http://word and the permission is = false
liveconnect: JavaScript: calling Java system code
liveconnect: JavaScript: default security policy = http://word
I haven't yet found anyone who could explain them. I'd like to try playing with permissions, buy I don't know how to do so. Any suggestions?
--- code follows ---
import javax.swing.*;
import java.applet.*;
import org.w3c.dom.*;
import com.sun.java.browser.dom.*;
public class ClientLink extends JApplet implements DOMAction {
DOMService service;
Document page;
public void start() {
try {
service = DOMService.getService(this);
System.out.println("Got service.");
service.invokeLater(this);
catch (Exception e) {
e.printStackTrace();
public Object run(DOMAccessor doma) {
System.out.println("Entry successful.");
try {
page = doma.getDocument(this);
System.out.println("Got document: "+page);
catch (Exception e) {
e.printStackTrace();
System.out.println("Error: "+e.toString());
return null;
}A couple of things I've found with DOMService and/or LiveConnect and the more recent java and browser releases :
1) You probably need to edit your java.policy file to grant permissions since the security in Java is now managed independently from the browser
2) You need to remember to have mayscript="true" in your applet tag
3) JSObject's dont work unless you've called JSObject.getWindow(...) first.
4) Many legitimate java exceptions will appear misleadingly as security exceptions -
How to create java browser?
I want to create a connection to a website (flickr) by using flickr API's and also I want to show the details in a JAVA browser.
any one help me.flounder wrote:
Just have fun. BTW is a date all you want to do with JA?he's a romantic, he wants things to develop naturally. -
In order to some calculator functions on the "Bankrate" website I need to enable the Java Browser function. I can I accomplished that task?
In recent versions of Lion, Java is automatically disabled (for security reasons) if it goes unused for a certain amount of time. You can re-enable it in the General pane of the Java Preferences app, found in /Applications/Utilities. (Check the box at the top of that pane.) If trying to open Java Preferences results in a message asking if you want to install Java, you don't actually have Java yet. Click the install button to install it.
Note that having Java turned on in your web browser is dangerous, due to recent proliferation of malware that uses Java to install itself. -
As the title say, therefore I had to uninstall 1.4.2_04 then reinstall 1.4.2_01... the "Browser Plugin Installation" Screen with two check boxes (Internet Explorer and Netscape Navigator) from 1.4.2_01 disappeared in 1.4.2_04, what's up with this?
It appears that the version string has been dropped from the Control Panel plugin. Look for a Control Panel entry simply titled "Java".
I've also noticed that it is no longer possible to manage different JVMs on my client machine starting with 1.4. The 1.5 installation takes over the Control Panel console, thereby essentially eliminating my ability to select 1.4.2, etc. -
[Solved] No audio through Java browser apps...
Hello.
I'm running 64bit Arch, the Alsa sound system, and the offical Sun Java RE. When I go to use java apps with audio, I'm not receiving any type of ouput. All other forms of audio on my system seem to be working, so I'm unsure where to begin troubleshooting.
Where do I start?
EDIT;
Use 'aoss' instead of 'alsa-oss'. I made the mistake of thinking it was the name of package that needing to be entered.
Last edited by Who'sThere? (2011-08-31 14:35:05)Try running those pulse insctructions but using aoss instead of padsp (that requires only the alsa-oss package, not pulseaudio). It should work, but OpenJDK already should work fine with ALSA by default...One thing I've noticed before is sometimes if I use the openjdk browser plugin, sound doesn't work, but in non-browser applets it works fine...but I haven't tested that in quite a while. The aoss thing should fix Sun JRE too (that's what I originally used it for, because Sun JRE's sound is...a little funky).
Last edited by doorknob60 (2011-08-06 05:50:07) -
How to hide hidden files in Java Browser
My application has a browser. I use the following method from FileSystemView
public File[] getFiles(File dir,
boolean useFileHiding)
with false as the second argument so that the browser doesn't display hidden files.
It doesn't work completely.
I found out there are two types of hidden files in Mac. the ones that being with "." (unix based) and the ones that have an invisibility attribute for the meta of the file (folders like /usr, /bin, /tmp, /etc).
The getFiles filter works only for hidden files that start with "." but it still shows the second type of hidden files.
For the second type of hidden files in Mac, how can I get the invisibility file attribute information in Java so that I can hide them from the file browser?
I am aware of GetFileInfo and the SetFile tool allows setting those flags. But how can I call those functions from java? And once i get the attributes of a file I don't know how to apply a filter to FileSystemView?
thanks,The GetFileInfo tool that ships with the XCode Tools can display the file's information. Additionally, the SetFile tool allows setting those flags. How you use java to implement those, I suggest you ask at the Unix forum under OS X Technologies.
-
Need help with java browser "Back" button
All:
I'm trying to make the "Back" button in my Java web browser work. Any help would be greatly appreciated. Here is my code:
import javax.swing.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.util.*;
import java.io.*;
import javax.swing.text.html.*;
import javax.swing.text.*;
public class Browser implements HyperlinkListener, ActionListener
String source = "http://www.google.com";
final String GO = "Go";
final String Back = "Back";
JEditorPane ep = new JEditorPane(); //a JEditorPane allows display of HTML & RTF
JToolBar tb = new JToolBar(); //a JToolBar sits above the JEditorPane & contains
JTextField tf = new JTextField(40); // the JTextField & go button
JLabel address = new JLabel(" Address: ");
JButton back = new JButton(Back);
JButton go = new JButton(GO);
BorderLayout bl = new BorderLayout();
JPanel panel = new JPanel(bl);
JFrame frame = new JFrame("Billy Wolfe's Browser");
protected Vector history;
public Browser()
openURL(source); //this method (defined below) opens a page with address source
ep.setEditable(false); //this makes the HTML viewable only in teh JEditorPane, ep
ep.addHyperlinkListener(this); //this adds a listener for clicking on links
JScrollPane scroll = new JScrollPane(ep); //this puts the ep inside a scroll pane
panel.add(scroll,BorderLayout.CENTER); //adds the scroll pane to center of panel
tf.setActionCommand(GO); //gives the ActionListener on tf a name for its ActionEvent
tf.setActionCommand(Back);
tf.addActionListener(this); //adds an ActionListener to the JTextField (so user can
go.addActionListener(this); //use "Enter Key")
tb.add(back); //this adds the back button to the JToolBar
tb.add(address); //this adds the Label "Address:" to the JToolBar
tb.add(tf); //this adds the JTextField to the JToolBar
tb.add(go); //this adds the go button to the JToolBar
panel.add(tb,BorderLayout.NORTH); //adds the JToolBar to the top (North) of panel
frame.setContentPane(panel);
frame.setSize(1000,900);
frame.setVisible(true);
}// end Browser()
public void openURL(String urlString)
String start = urlString.substring(0,4);
if(!start.equals("http")) //adds "http://" to the URL if needed
urlString = "http://"+urlString;
}//end if
try
URL url = new URL(urlString);
ep.setPage(url); //this sets the ep page to the URL page
tf.setText(urlString); //this sets the JTextField, tf, to the URL
catch (Exception e)
{ System.out.println("Can't open "+source+" "+e);
}//end try-catch
}//end openURL
public void hyperlinkUpdate(HyperlinkEvent he) //this allows linking
HyperlinkEvent.EventType type = he.getEventType();
if(type == HyperlinkEvent.EventType.ACTIVATED)
openURL(he.getURL().toExternalForm());
history.add(he.getURL().toExternalForm());
}//end hyperlinkUpdate()
public void actionPerformed(ActionEvent ae) //for the GO and BACK buttons
String command = ae.getActionCommand();
if(command.equals(GO))
openURL(tf.getText());
history.add(tf.getText());
//JOptionPane.showMessageDialog(null, "This is a test");
if(command.equals(Back))
try
String lastURL = (String)history.lastElement();
history.removeElement(lastURL);
lastURL = (String)history.lastElement();
// JOptionPane.showMessageDialog(null, lastURL);
ep.setPage(lastURL);
if (history.size() == 1)
back.setEnabled(false);
catch (Exception e)
System.out.println("ERROR: Trouble fetching URL");}
}//end actionPerformed()
}// end Browser classHere it is. I need to be able to click the Back button and view the previous URL.
import javax.swing.*;
import java.net.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.util.*;
import java.io.*;
import javax.swing.text.html.*;
import javax.swing.text.*;
public class Browser implements HyperlinkListener, ActionListener
String source = "http://www.google.com";
final String GO = "Go";
final String Back = "Back";
JEditorPane ep = new JEditorPane(); //a JEditorPane allows display of HTML & RTF
JToolBar tb = new JToolBar(); //a JToolBar sits above the JEditorPane & contains
JTextField tf = new JTextField(40); // the JTextField & go button
JLabel address = new JLabel(" Address: ");
JButton back = new JButton(Back);
JButton go = new JButton(GO);
BorderLayout bl = new BorderLayout();
JPanel panel = new JPanel(bl);
JFrame frame = new JFrame("Billy Wolfe's Browser");
protected Vector history;
public Browser()
openURL(source); //this method (defined below) opens a page with address source
ep.setEditable(false); //this makes the HTML viewable only in teh JEditorPane, ep
ep.addHyperlinkListener(this); //this adds a listener for clicking on links
JScrollPane scroll = new JScrollPane(ep); //this puts the ep inside a scroll pane
panel.add(scroll,BorderLayout.CENTER); //adds the scroll pane to center of panel
tf.setActionCommand(GO); //gives the ActionListener on tf a name for its ActionEvent
tf.setActionCommand(Back);
tf.addActionListener(this); //adds an ActionListener to the JTextField (so user can
go.addActionListener(this); //use "Enter Key")
tb.add(back); //this adds the back button to the JToolBar
tb.add(address); //this adds the Label "Address:" to the JToolBar
tb.add(tf); //this adds the JTextField to the JToolBar
tb.add(go); //this adds the go button to the JToolBar
panel.add(tb,BorderLayout.NORTH); //adds the JToolBar to the top (North) of panel
frame.setContentPane(panel);
frame.setSize(1000,900);
frame.setVisible(true);
}// end Browser()
public void openURL(String urlString)
String start = urlString.substring(0,4);
if(!start.equals("http")) //adds "http://" to the URL if needed
urlString = "http://"+urlString;
}//end if
try
URL url = new URL(urlString);
ep.setPage(url); //this sets the ep page to the URL page
tf.setText(urlString); //this sets the JTextField, tf, to the URL
catch (Exception e)
{ System.out.println("Can't open "+source+" "+e);
}//end try-catch
}//end openURL
public void hyperlinkUpdate(HyperlinkEvent he) //this allows linking
HyperlinkEvent.EventType type = he.getEventType();
if(type == HyperlinkEvent.EventType.ACTIVATED)
openURL(he.getURL().toExternalForm());
history.add(he.getURL().toExternalForm());
}//end hyperlinkUpdate()
public void actionPerformed(ActionEvent ae) //for the GO and BACK buttons
String command = ae.getActionCommand();
if(command.equals(GO))
openURL(tf.getText());
history.add(tf.getText());
//JOptionPane.showMessageDialog(null, "This is a test");
if(command.equals(Back))
try
String lastURL = (String)history.lastElement();
history.removeElement(lastURL);
lastURL = (String)history.lastElement();
// JOptionPane.showMessageDialog(null, lastURL);
ep.setPage(lastURL);
if (history.size() == 1)
back.setEnabled(false);
catch (Exception e)
System.out.println("ERROR: Trouble fetching URL");}
}//end actionPerformed()
}// end Browser class -
Heya!
I bashed and crashed away trying to get the javaplugin working for Moz last night but to no avail. This is the error when launched from the terminal:
LoadPlugin: failed to initialize shared library /opt/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so [libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory]
Easy enough I thought lets just try making a symlink like so:
ln -s /usr/lib/libstdc++.so.5.0.0 /usr/lib/libstdc++-libc6.1-1.so.2
Still didn't work it produced this output:
LoadPlugin: failed to initialize shared library /opt/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so [/opt/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so: undefined symbol: __rtti_si]
LoadPlugin: failed to initialize shared library /opt/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so [/opt/mozilla/plugins/java2/plugin/i386/ns600/libjavaplugin_oji.so: undefined symbol: __rtti_si]
I am using the GCC3 tree if that is any help.
Java is not a huge concern but it would be a bonus to have it. I only need it for my browser.
Thanks in advance.sarah31 wrote:
Thu Sep 26, 2002 11:45 pm
i think that was just a fraction longer than four months:P
(remember the year is part of the date dp )
you're right, in fact it's 16months ... and i definitely like your kind of humor -
Java Browser Window (JDIC)
well im trying to make a browser, but when i run the project i get following error:
Exception in thread "EventThread" java.lang.NullPointerException
at org.jdesktop.jdic.browser.internal.MsgClient.<init>(Unknown Source)
at org.jdesktop.jdic.browser.internal.NativeEventThread.run(Unknown Source)any idea why?
import org.jdesktop.jdic.browser.*;
import org.jdesktop.jdic.browser.WebBrowser;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.net.*;
public class TEST {
public static void main(String[] args) {
final WebBrowser webBrowser = new WebBrowser();
webBrowser.setSize(700,500);
final JTextField site = new JTextField(15);
final JTabbedPane pane = new JTabbedPane();
JButton go = new JButton("go");
go.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
try {
webBrowser.setURL(new URL(site.getText()));
pane.add(webBrowser);
catch(Exception ex) {
JOptionPane.showMessageDialog(null,ex.getMessage());
JFrame frame = new JFrame("Test browser");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(700,500);
Container c = frame.getContentPane();
c.add(site, BorderLayout.NORTH);
c.add(go, BorderLayout.EAST);
c.add(webBrowser, BorderLayout.CENTER);
frame.pack();
frame.setVisible(true);
}thank you :)it is really strange, that was what i got in netbeans 6.0, now in version 5.5.1, i get no errors, except the program doesnt load a webpage like its supposed to... (when i click the go button, the WebBrowser Area disapears)
if you look at the picture you see how it is set up, i dont know if i somehow need to import everything in JDIC? (the IEembed.exe, dll files, ect)?
http://img299.imageshack.us/img299/1322/rssmoothhf6.png -
Hello everybody,
I have written a Web-Browser in Java. When this browser loads a page from a webserver, in the webservers logfile the client name is "Java1.3.0". I want to have the browser its own name. So that in the webservers logfile is written "MyBrowser1.0" for example. Is there any possibility to change this in the Java Application?
kind regards
AndreasI use the Java classes URLConnection and HTTPConnection: Here is the code:
HttpURLConnection connection = (HttpURLConnection)((new URL("http://www.webserver.com")).openConnection());
connection.connect();
InputStream contentStream = connection.getInputStream();
BufferedReader contentStreamReader;
String encoding = connection.getContentEncoding();
if (encoding == null)
contentStreamReader = new BufferedReader(new InputStreamReader(contentStream));
else
contentStreamReader = new BufferedReader(new InputStreamReader(contentStream, encoding));
StringBuffer textBuffer = new StringBuffer();
int sign = contentStreamReader.read();
while (sign >= 0) {
textBuffer.append((char)sign);
sign = contentStreamReader.read();
connection.disconnect();
String content = textBuffer.toString();
Maybe you are looking for
-
Has anyone tried the TV@nywhere with SECAM?
Est-ce que n'importe qui a essayé le TV@nywhere Master avec SECAM? I am considering living in France, has anyone had any experience with this card using the SECAM TV standard? Est-ce que j'habiter en France, n'importe qui considère a eu une expérienc
-
Search drivers for Creative webcam N10225, PD1110 on Windows Vista 64
I'm searching drivers to run my webcam on a Pc with windows vista 64 Creative webcam N10225, PD1110 Thank You
-
Regarding Idoc scenario....
Hi Gurus, Could any one explain what are the configurations required for idoc to file scenario ? i have configured every thing, with defining a logical system, assigning a logical system, creating port and partner profile and i am getting confusing a
-
Podcasts in Smart Playlist not showing up on iPhone in iOS 5
Upon first syncing my iPhone to iTunes after uploading both to iOS 5 and iTunes 10.5, I noticed that my podcasts in Smart Playlists were not there, and coincidentally, the Smart Playlists were gone in iTunes (that's a different issue altogether). The
-
My ipad will not start up. The apple sign is just flashing in the middle of the screen
Hello hope you can help. My iPad has just stopped running while on Facebook. It is just a blank screen with the apple logo flashing in the middle of the screen. It has been doing this for about an hour now!