wood burning stoves*
The moose likes Beginning Java and the fly likes opening a website in my own application(how do i render it properly?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "opening a website in my own application(how do i render it properly?)" Watch "opening a website in my own application(how do i render it properly?)" New topic
Author

opening a website in my own application(how do i render it properly?)

mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Hi all,

I have a text programm like wordpad that also can open a web url, when it shows the site it looks very pretty strange as i suppose it isn't getting the CSS from the website?

here is the bit of code that opens the page



What i would like to know is, can i set it up so it shows the page more properly? and how shall i go about it or where can i go to get more information about doing this in Java?

Edit: i changed the subject to better clarify what i meant .


Thanks
Mike


PS: the Moose pic looks a bit strange today ;)
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
What is "eingabeFeld" - a JEditorPane? If so, that doesn't support CSS at all, nor JavaScript, nor anthing newer than HTML 3.2 (which was defined in 1997...)

http://lobobrowser.org/java-browser.jsp is a newer Swing component that supports more of HTML, CSS and JavaScript.
mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Tim Moores wrote:What is "eingabeFeld" - a JEditorPane? If so, that doesn't support CSS at all, nor JavaScript, nor anthing newer than HTML 3.2 (which was defined in 1997...)

http://lobobrowser.org/java-browser.jsp is a newer Swing component that supports more of HTML, CSS and JavaScript.



here is that part of the code

Aditya Jha
Ranch Hand

Joined: Aug 25, 2003
Posts: 227

My current project uses JExplorer to use full browser features of IE as a Swing component. It's a paid component, though, but worth mentioning here.
mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Thanks Tim and Aditya for your answers!!

I think i will look at the Lobo browser, I was hoping there would be something a little more simple as i am doing homework and wanted to make things look a bit nicer (extra credit ;) ).

The JExplorer is very expensive 435 Euro !! just a side question now, is this something i would need often in Java? i mean rendering web url's in a GUI for instance?


Thanks again
Mike
Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

mike ryan wrote:Thanks Tim and Aditya for your answers!!

I think i will look at the Lobo browser, I was hoping there would be something a little more simple as i am doing homework and wanted to make things look a bit nicer (extra credit ;) ).

The JExplorer is very expensive 435 Euro !! just a side question now, is this something i would need often in Java? i mean rendering web url's in a GUI for instance?


Thanks again
Mike


Depends You can make it look good by creating a web app and using system browser but that might be overkill for now


===Vyas Sanzgiri===
My Blog
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
You could just use the desktop browser instead - java.awt.Desktop.browse(...). That would guarantee much better results.
mike ryan
Ranch Hand

Joined: Aug 08, 2010
Posts: 210

Thanks everyone for your input!!


i will take a look at the java.awt.Desktop.browse(...). that Tim has mentioned .
 
GeeCON Prague 2014
 
subject: opening a website in my own application(how do i render it properly?)