Forums Register Login

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

+Pie Number of slices to send: Send
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 ;)
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
 

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

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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
+Pie Number of slices to send: Send
You could just use the desktop browser instead - java.awt.Desktop.browse(...). That would guarantee much better results.
+Pie Number of slices to send: Send
Thanks everyone for your input!!


i will take a look at the java.awt.Desktop.browse(...). that Tim has mentioned .
Hold that thought. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 996 times.
Similar Threads
Scale displayed Image via JCheckBox
Working with UIManager.setLookAndFeel
Explaination wanted: Index Transformation
getContentLength() of HttpURLConnection Problem
Program to convert temperature
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 10:03:33.