?
Solved

textarea

Posted on 2003-12-01
6
Medium Priority
?
232 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
Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

 
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 200 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

770 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