Solved

Can I Enhance JEditorPane Features

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This video teaches viewers about errors in exception handling.

758 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

17 Experts available now in Live!

Get 1:1 Help Now