Tagging UI control

Mike Hearn mike at plan99.net
Mon Sep 8 11:15:17 UTC 2014


I've not encountered one, but building such a thing should be quite
straightforward. You could use CSS to create a text-area like rectangle
with an HBox inside it, and then have a no-border textedit that simply
expands to fill the available space. When the user presses enter you create
an appropriately styled label with the contained text and insert it to the
left of the edit in the hbox. Tweak CSS and spacing and you have a basic
tagging control.

On Mon, Sep 8, 2014 at 10:02 AM, Robert Krüger <krueger at lesspain.de> wrote:

> Hi,
>
> how would one go about implementing (i.e. use which api) a tagging
> control (e.g. like http://xoxco.com/projects/code/tagsinput/) in JFX
> or is this already available in an existing extension library?
>
> Is this easily done with a bit of text parsing and CSS magic or as
> fiddely as building a rich text editor or does it even make sense to
> build this by integrating a web component and using an existing
> javascript-based solution (which feels a bit odd)?
>
> Thanks in advance for any opinions/pointers.
>
> Robert
>


More information about the openjfx-dev mailing list