aspose file tools*
The moose likes Java in General and the fly likes How to modify HTML content on a JTabbedPane using JD Native Swing libraries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to modify HTML content on a JTabbedPane using JD Native Swing libraries" Watch "How to modify HTML content on a JTabbedPane using JD Native Swing libraries" New topic
Author

How to modify HTML content on a JTabbedPane using JD Native Swing libraries

Olivier López
Ranch Hand

Joined: Jan 31, 2010
Posts: 32
Hi guys

I'm developing a Java application on Netbeans, with a web browser embeded on it.
The browser works fine, i have choosen JD Native Swing libraries for web browsing
and I can access any website on it, but here's the deal:

I want to modify some of the HTML content on the browser, but havent figured out how, what i tried
is to do something like:

That code let me replace text1 with text2, in the webbrowser, but when the setHTMLContent runs,
the website lose all the structure, because im not just replacing a text inside the html code, but setting a totally
new HTML content.

I tried this using JD Native Swing and JDIC but im still not able to do what i want.

Any ideas?

Thanks in advance =)
Olivier López
Ranch Hand

Joined: Jan 31, 2010
Posts: 32
I was thinking a little bit more about it, and i figured out im doing something stupid: The right way to do this filling the info of the website fields directly on the URL or using a different method.

What i want is something like this:

I have this form:


and this is the code of that form:


I want to fill that javascript array in any way, using javascript or by any method, but it have to be done through my netbeans
application, maybe with a method like "webBrowser.navigate("any kind of url that can help me to modify that javascript/html code");"

I believe this is not the right thread to post this request, but just wanted to explain a little bit more what i want on my java application.
Olivier López
Ranch Hand

Joined: Jan 31, 2010
Posts: 32
I just found on my JD Native Swing libraries a method that is going to help me:


I have the same knowledge on javascript, than Paris Hilton on Theoretical Physics, so now i believe i just need
to read some stuff and learn about javascript to solve my problem.

Thanks anyways¡
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Olivier López wrote:I have the same knowledge on javascript, that Paris Hilton on Theoretical Physics

LOL.

Glad you found the solution on your own.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to modify HTML content on a JTabbedPane using JD Native Swing libraries
 
Similar Threads
on lost focus of textbox. + JSP + Server side Validation.
Rules declaration in text file - please help
Giving new line from the string
Serving Excel Content
on lost focus of textbox. + JSP + Server side Validation.