Solved

textarea

Posted on 2003-12-01
6
228 Views
Last Modified: 2010-03-31
i want to put text and image in the textarea i know its not possible
can someone please give me the alternative
0
Comment
Question by:omashhour
6 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 9849593
I knew I'd seen something like this recently ;-)

http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20675470.html

Perhaps you will close the question when you're done ;-)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9849597
You could do easily in a JEditorPanel. Set the content type to text/html and use markup.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9849605
If you use a JEditorPanel, make sure to accept CEHJ's comment.  His was the one I was referring to ;-)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:omashhour
ID: 9849675
ill accept ur question CEHJ
but can u please tell me first how to set the content type??
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 9849685
jeditorPane.setContentType("text/html");
0
 
LVL 35

Expert Comment

by:girionis
ID: 9849753
 You can put images in a text area. Just look at the Stylepad example under the examples folder of your jdk installation.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Title # Comments Views Activity
hibernate jars 4 57
jmss example java 2 31
Java syntax, or is it Selenium 6 37
American Express @Work site and Java 4 63
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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 tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

679 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