B4J Question Button in textfield

I believe you can do it with BBTextEngine, in the text you can include a button in the text

 
Upvote 0
I´m not sure if a B4J Button is äquivalent to a JButton.
 
Upvote 0
I don't know if I understand correctly. But it looks like several custom views of TextView editable with confirmation button.
If I understand correctly you can find several in the forum but it would be easy to create it as a custom view. (see here)

But I'm not sure that's what you're looking for
 
Last edited:
Upvote 0
The solutions in the link are just adding a textfield and a button to a pane and adjusting the positions. albeit not in javafx. So a customview would make that straightforward.
 
Upvote 0
A quick and dirty example. Using the extracss to change the textfields right inset, and delegating some of the callbacks.

It may look better with a label instead of a button.
 

Attachments

Upvote 0
That's exactly the solution, how it is implemented depends how you want it to look. Moving it inside or over the textfield makes it look like one control.
 
Upvote 0
Back
Top