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
Solved

Can I Enhance JEditorPane Features

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Title # Comments Views Activity
iterator/ListIterator approach 17 39
by zero exception 10 52
swing controls 2 16
American Express @Work site and Java 4 28
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

828 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