How can I get Textflow editable in Javafx 8? - javafx-8

I have an Editor with a TextArea which is editable but it is not possible to dye the keywords in another Color.
So I want to Change the textarea into a Textfllow which is editable.

Related

How to set place holder in swt text box without using SWT.SEARCH style

I have a SWT textbox to which I would like to add a place holder text. Now this textbox is not intended to behave as a search textbox, its a normal textbox and hence I do not want to add the style of SWT.SEARCH. But just by calling setMessage(), the place holder text is not visible.
How to show the place holder without using the style SWT.SEARCH ?

how to change tinymce textarea text color

I am trying to change the text color for tinymce text editor, when I type text inside it is by default appearing with gray color, I want text to appear with say red color. I think I will have to override its default css not sure about it, any suggestions?
If possible don't fiddle with the tinymce skin specifics.
Best practice is to use the tinymce configuration parameter content_css.
content_css : "http://path_to_css/custom_content.css",

NicEdit with jQuery Autocomplete

I'm trying to make a rich text editor with an autocomplete feature. Right now i'm using NicEdit to turn a textarea into a rich text editor, works ok(i'm using it for its simplicity). Also i'm using the autocomplete feature form jQuery successfully on textboxes or textareas, but if i try to use the same textarea that NicEdit uses(that is a text area with "textareaID" id), it doesn't work beacause NicEdit changes the textarea into DIVs with different IDs(in my case the html source ID for that DIV is "nicEdit-main"), and the autocomplete does not work on the DIVs ID.
So, autocomplete does not work on:
$("#nicEdit-main").autocomplete({...
neither does on:
$("#textareaID").autocomplete({...
An idea on how i can accomplish NicEdit and autocomplete to work on the same textarea, will be appreciated.

Eclipse RCP Clear Button in Textinput

I just started working on an eclipse RCP application in my company and search now for following component:
In the eclipse preference dialog is a text input field with a eraser which clears the text box (see image).
Is there a component in eclipse RCP which does exactly that? Or one where I can set an image in a text input field, so I can implement just the functionality.
Or have I to write my own component extending from Text?
Thanks.
Eclipse does not offer such a component, so you will have to implement one yourself.
But I wouldn't extend Text for this. Simply create a Composite with SWT.BORDER style, and a Text and Button as children. If you don't give the Text a border, it looks like the button is within the text box. Instead of the Button you could use a ToolBar with a single ToolItem, both with the SWT.FLAT style. This will look much better than a regular button.
Text text = new Text(parent, SWT.SEARCH | SWT.ICON_CANCEL);
This is present in Luna's API, don't know about older versions. You can check more here: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet309.java?view=co

How do you customize the font in a GWT list box?

Using GWT 2.3 and new to all this..
How to you make the word "Select..." in italic and gray below?
I tried to setStyleName, but settings are ignore.
Thanks, Bob
// show word select in am empty list box. nestUnderListBox.addItem("Select...");
// This line did not make "Select..." gray italic.
nestUnderListBox.setStyleName("nextUnderListBoxInitial");
what you are trying to do isn't possible with CSS!
See styling HTML form list box with CSS or jQuery for other Ideas!
That's not possible with ListBox.
But, you can use something like CellList (GWT-Showcase) and re-develop the functionality from ListBox.