File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Javascript & Java Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Javascript & Java Applet" Watch "Javascript & Java Applet" New topic
Author

Javascript & Java Applet

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726
Can we include java script or style sheet in java applet?

Please get me example
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39541
    
  27
It's not possible.


Ping & DNS - updated with new look and Ping home screen widget
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726
Originally posted by Ulf Dittmer:
It's not possible.


can we put a in separate e.g. test.css or test.js and invoke these files via inserting path in the applet?

Thanks for your reply
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39541
    
  27
Applets have no concept of a "path", and they can't use CSS, JS or HTML.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 726
Originally posted by Ulf Dittmer:
Applets have no concept of a "path", and they can't use CSS, JS or HTML.


Thanks for help and replies
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript & Java Applet
 
Similar Threads
Clock
Clock
applet
How to invoke a java class which is not an applet from the html page?
How run aaplet through ant.