• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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¡
 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't MAKE me come back there with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic