Solved

Can I Enhance JEditorPane Features

Posted on 2001-07-21
5
244 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

691 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