Solved

textarea

Posted on 2003-12-01
6
224 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
Comment Utility
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
Comment Utility
You could do easily in a JEditorPanel. Set the content type to text/html and use markup.
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
If you use a JEditorPanel, make sure to accept CEHJ's comment.  His was the one I was referring to ;-)
0
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

 
LVL 1

Author Comment

by:omashhour
Comment Utility
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
Comment Utility
jeditorPane.setContentType("text/html");
0
 
LVL 35

Expert Comment

by:girionis
Comment Utility
 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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…

762 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

11 Experts available now in Live!

Get 1:1 Help Now