Solved

textarea

Posted on 2003-12-01
6
231 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
[X]
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
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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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 …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

717 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