File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes Have any good idea to put image on TextArea ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JavaFX
Bookmark "Have any good idea to put image on TextArea ? " Watch "Have any good idea to put image on TextArea ? " New topic
Author

Have any good idea to put image on TextArea ?

chester lin
Greenhorn

Joined: May 15, 2012
Posts: 3
I'm writer one software , The software function like msn messenger to chat you and your friend , about can send word and send file , now i want to put image on TextArea and can send to friend dialog, the image like msn face symbol , but no any good idea to solve this problem, have someone to help me??

thanks
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4571
    
    5

You could use a WebView instead of a TextArea. The WebEngine's HTML support includes support for the IMG tag.

edit: or a HTMLEditor


luck, db
There are no new questions, but there may be new answers.
Ken Kestner
Greenhorn

Joined: May 08, 2012
Posts: 4
Darryl Burke wrote:You could use a WebView instead of a TextArea. The WebEngine's HTML support includes support for the IMG tag.

edit: or a HTMLEditor


Do you have any links to examples where the WebView is made editable or for adding an image to an HTMLEditor?

Also, in the application I'm writing, I'd like to be able to save the content, including the image to a database. I'll also
need some way to decode the image when retrieving from the db. Is this possible?

John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 144
    
    9
Do you have any links to examples where the WebView is made editable or for adding an image to an HTMLEditor?

Here is an answer reproduced from another forum post (with an image added) =>
https://forums.oracle.com/forums/thread.jspa?threadID=2382360 "Making HtmlEditor ReadOnly"

For your other questions I'll let you work that out yourself for now.
 
GeeCON Prague 2014
 
subject: Have any good idea to put image on TextArea ?