Solved

Can I Enhance JEditorPane Features

Posted on 2001-07-21
5
242 Views
Last Modified: 2013-11-18
hai,Can I enhance the features of JEditorPane to embed a plugin-ShockWavePlayer  , for displaying a director file in JEditorPane.

Actually this director file is of extension 'xxx.dcr' and is called by HTML file, and this  HTML file should be displayed in JEditorPane.
0
Comment
Question by:globalkiran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 92

Expert Comment

by:objects
ID: 6304479
JEditorPane is designed for use with text files.
It could certainly be used to display the HTML, but unless you want a text only ShockWave player then JEditorPane won't help you.
FOr that task, you'd be best of building your own component.
0
 
LVL 1

Expert Comment

by:vbremaud
ID: 6304925
You mean showing the plugin as an object in the text (like an image) ?
If this is what you want to do, implement the object first as a separate component. Then, you have to look in the JEditor's docs to see how to put the component into the text.
I'm sorry, but I'm not very confident with this, so I can't tell you how to do it ; I only know it is very likely to be possible.

hope it helps :-)
0
 
LVL 92

Expert Comment

by:objects
ID: 6305532
WHat you need to do is write a new Text View which involves creating a new implementation of the javax.swing.text.View interface.
These can then be used inside the JEditorPane to render your Director file.
0
 
LVL 5

Expert Comment

by:vemul
ID: 7669569
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- To be PAQ'ed and points NOT refunded
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

vemul
Cleanup Volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7714508
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question