Posted on 2003-12-01
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
Question by:omashhour
LVL 15

Expert Comment

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

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

Expert Comment

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

Expert Comment

ID: 9849605
If you use a JEditorPanel, make sure to accept CEHJ's comment.  His was the one I was referring to ;-)
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.


Author Comment

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

Accepted Solution

CEHJ earned 50 total points
ID: 9849685
LVL 35

Expert Comment

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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JDeveloper 12c for 32 bit 4 85
JList custom Cell Renderer refresh 15 57
how do i compare an object based on two fields 6 54
JAVA API design with micro service cloud in mind 1 18
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 …
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 “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

803 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