Solved

Can I Enhance JEditorPane Features

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My project did see openJDK that I installed. What could be the problem 7 122
eclipse argument 14 53
javap bin 2 26
xampp tool 12 24
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

914 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now