[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

textarea

i want to put text and image in the textarea i know its not possible
can someone please give me the alternative
0
omashhour
Asked:
omashhour
1 Solution
 
jimmackCommented:
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
 
CEHJCommented:
You could do easily in a JEditorPanel. Set the content type to text/html and use markup.
0
 
jimmackCommented:
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!

 
omashhourAuthor Commented:
ill accept ur question CEHJ
but can u please tell me first how to set the content type??
0
 
CEHJCommented:
jeditorPane.setContentType("text/html");
0
 
girionisCommented:
 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

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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now