Hi Andrei,
I can use Desktop.getDesktop().browse() on my Mac system: 10.6.7 and Java
version 1.6.0_24. Works like a charm.
What version of OSX / Java is it not working on for you?
~Roger Whitcomb
-----Original Message-----
From: Andrei Pozolotin [mailto:[email protected]]
Sent: Sat 6/4/2011 3:11 PM
To: [email protected]
Subject: Re: Webkit component
*Edvin:
*
1) re: "Desktop.getDesktop().browse()"
does not work on linux, mac:
Exception in thread "main" java.lang.UnsupportedOperationException:
Desktop API is not supported on the current platform
at java.awt.Desktop.getDesktop(Desktop.java:126)
at bench.browse.TestBrowse.main(TestBrowse.java:13)
use instead:
<dependency>
<groupId>net.sourceforge</groupId>
<artifactId>browserlauncher</artifactId>
<version>1.3.0</version>
</dependency>
2) eclipse uses embedded external system browser in a swt frame; I
wonder if you know this exists for awt?
3) are your apps in public domain? can I take a look please? :-)
thanks,
Andrei
-------- Original Message --------
Subject: Re: Webkit component
From: Edvin Syse <[email protected]>
To: [email protected]
Date: Sat 04 Jun 2011 08:02:29 AM CDT
> I don't think such a component exists. Maybe someone would integrate
> against Prism/JavaFX 2.0 some day, so you can reuse the WebPane from
> JavaFX, but in the meantime you'd have to open an external browser
> window. That's fairly easy to do via Desktop.getDesktop().browse()
> though. I use it in my Pivot app to allow editing with TinyMCE.
>
> I post back to an integrated http-server in my Pivot-app, works like a
> charm. Another thing is, most webbrowser components for Java, even the
> onces that use JNI, are actually quite slow, especially when it comes
> to JavaScript execution. You are better off with the external browser
> Window, trust me :)
>
> -- Edvin
>
> Den 04.06.2011 14:39, skrev Wim Goeman:
>> Hi all,
>>
>> I made this small app which allows to installs new versions of a J2EE
>> app, basically an "updater". What I would like to do next is integrate
>> Jetty into it, so that the updater becomes the all-in-one app.
>>
>> I am pretty confident about the Jetty part, but I was wondering if the
>> possibility exists to show a webkit based browser frame in my pivot app.
>> If that is possible, I could have 1 tool to update the program, manage
>> the server instance and actually use it.
>>
>> Any hints on how I could accomplish the webkit thing? Doesnt have to be
>> webkit, as long as it is an HTML5 + CSS + JavaScript thing I would be
>> happy.
>>
>> Thanks,
>> Wim
>