• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 210
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ;)
 
Saloon Keeper
Posts: 7590
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Ranch Hand
Posts: 227
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 686
Netbeans IDE Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 7590
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic