Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2005

Tip: Looking for answers? Try searching our database.

Problem using JEditor in swing

Thread view: 
smita bhopale - 01 Jun 2005 10:17 GMT
I am using JEditor to show html pages i.e. JEditor.setPage(url) method to
show url .
If the html page contains javascript code in it.
Is there any solution to make JEditor script enabled?

Or if there is another solution to show html pages [containning scripts]
.Please tell me.
Andrew Thompson - 01 Jun 2005 11:16 GMT
> I am using JEditor

No such class in core Java.  Do you mean JEditorPane by any chance?

>...to show html pages i.e. JEditor.setPage(url) method to
> show url .
> If the html page contains javascript code in it.
> Is there any solution to make JEditor script enabled?

Write a subclass of JEditoPane that interprets script.  I believe there
is a JavaScript engine by the name of 'Rhino' that you might use for the
scripting itself.

> Or if there is another solution to show html pages [containning scripts]
> .Please tell me.

Yes.  Applet or application?

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Joly Makunga - 30 Jun 2005 10:23 GMT
> I am using JEditor to show html pages i.e. JEditor.setPage(url) method to
> show url .
[quoted text clipped - 3 lines]
> Or if there is another solution to show html pages [containning scripts]
> .Please tell me.

i don't have the answer for your question, but i noticed that the
project where i'm working in is similary to your. in fact i use a
JTextpane to display html pages. So i have to simulate zoom effects on
these html pages. i decide to do that by increasing or decreasing
variables concerning size and police of the html document. My problem
is, i don't know how to acces to these varables.
could you help me ?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.