Skip to content

Support embedding arbitary nodes like Hyperlinks and ImageView in text layout #355

@sco0ter

Description

@sco0ter

Hi,

I need something similar to javafx.scene.text.TextFlow, where you can put HyperLinks and ImageViews as well (or any arbitrary Node), BUT unlike TextFlow, the Text (and maybe even HyperLinks) should be selectable (for copying the selected text).

Something like:
http://www.java-blog-buch.de/wp-content/uploads/2009/08/000073.png
(See the image on the bottom)

Think of a chat window with smileys and hyperlinks and probably other nodes embedded in the text layout.

It seems like Swing allows that (at least using images within text) using javax.swing.JTextPane + javax.swing.text.StyledDocument

I've looked at RichTextFX, but it seems you can only use plain text, but not embed other nodes in the text layout, right?

Anybody could point me in a direction, where to look and what to do, if I have to do it myself?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions