• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
mike ryan
Ranch Hand
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2748
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 227
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 686
Chrome Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Moores
Bartender
Posts: 2748
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could just use the desktop browser instead - java.awt.Desktop.browse(...). That would guarantee much better results.
 
mike ryan
Ranch Hand
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone for your input!!


i will take a look at the java.awt.Desktop.browse(...). that Tim has mentioned .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic