Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Olivier López
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic