Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing Japplet in Jeditorpane

 
prasann agrawal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made a JEditorPane and I would like to invoke Japplet in it but it doesn't work . JtextPane, JTextArea, JEditorpane or any Java editor can do this or not??? Plz repl immediately
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Welcome to JavaRanch!
I think what you're saying is that you're displaying HTML in a JTextComponent, and that HTML includes an <applet> or <embed> tag, but the JApplet isn't showing up. Unfortunately, no JTextComponent has the capability to display JApplets, plug-ins, etc, so this isn't going to work.
You can fairly easily display an applet in a JFrame, especially if you can make some modifications to the source. Look at the applet demos in the J2SDK distribution for many examples of this.
[ October 09, 2003: Message edited by: Ernest Friedman-Hill ]
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Applets forum where its a bit more appropriate. Please continue the discussion there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic