B4J Question PlaceHolder in a textbox

Dogbonesix

Active Member
Licensed User
Longtime User
I have a need to use a placeholder in a textbox in B4J. In B4A hint text it is a no brainer but for B4J there is no option other than the HTML page. However during runtime the placeholder/hint needs to change from time to time. How can the placeholder/hint for a textbox be changed at runtime?
 

EnriqueGonzalez

Expert
Licensed User
Longtime User
there is no option other than the HTML page.
I don't understand what you mean. Are you using a webview? An html editor ?

If you mean a fx textbox then. Use setPromptText

If you do not haveit then use javaobject
Txt.as(javaobject).runmethod("setPromptText",array("your text"))
 
Upvote 1
Top